From d57635e8a7bea3352ab2b4091fc1ec679663f884 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Thu, 11 Jan 2024 04:23:11 +0800 Subject: [PATCH] Fix typos (#331) Found via `codespell -S deps -L te,aliasas` --- lib/oidcc.ex | 6 +++--- lib/oidcc/client_registration.ex | 2 +- lib/oidcc/logout.ex | 2 +- lib/oidcc/token.ex | 6 +++--- src/oidcc.erl | 2 +- src/oidcc_client_context.erl | 2 +- src/oidcc_logout.erl | 2 +- test/oidcc_authorization_test.erl | 2 +- test/oidcc_userinfo_test.erl | 8 ++++---- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/oidcc.ex b/lib/oidcc.ex index cf95c38..6fafce0 100644 --- a/lib/oidcc.ex +++ b/lib/oidcc.ex @@ -68,7 +68,7 @@ defmodule Oidcc do ...> issuer: "https://api.login.yahoo.com" ...> }) ...> - ...> # Get auth_code fromm redirect + ...> # Get auth_code from redirect ...> auth_code = "auth_code" ...> ...> Oidcc.retrieve_token( @@ -111,7 +111,7 @@ defmodule Oidcc do ...> issuer: "https://api.login.yahoo.com" ...> }) ...> - ...> # Get refresh_token fromm redirect + ...> # Get refresh_token from redirect ...> refresh_token = "refresh_token" ...> ...> Oidcc.refresh_token( @@ -354,7 +354,7 @@ defmodule Oidcc do |> Oidcc.Token.normalize_token_response() @doc """ - Create Initiate URI for Relaying Party initated Logout + Create Initiate URI for Relaying Party initiated Logout See [https://openid.net/specs/openid-connect-rpinitiated-1_0.html#RPLogout] diff --git a/lib/oidcc/client_registration.ex b/lib/oidcc/client_registration.ex index 58dcd68..29902bc 100644 --- a/lib/oidcc/client_registration.ex +++ b/lib/oidcc/client_registration.ex @@ -42,7 +42,7 @@ defmodule Oidcc.ClientRegistration do alias Oidcc.ProviderConfiguration @typedoc """ - Client Metdata Struct + Client Metadata Struct See https://openid.net/specs/openid-connect-registration-1_0.html#ClientMetadata and https://openid.net/specs/openid-connect-rpinitiated-1_0.html#ClientMetadata diff --git a/lib/oidcc/logout.ex b/lib/oidcc/logout.ex index b1ba89e..6382b1f 100644 --- a/lib/oidcc/logout.ex +++ b/lib/oidcc/logout.ex @@ -7,7 +7,7 @@ defmodule Oidcc.Logout do alias Oidcc.ClientContext @doc """ - Initiate URI for Relaying Party initated Logout + Initiate URI for Relaying Party initiated Logout See https://openid.net/specs/openid-connect-rpinitiated-1_0.html#RPLogout diff --git a/lib/oidcc/token.ex b/lib/oidcc/token.ex index 4e289fd..1724754 100644 --- a/lib/oidcc/token.ex +++ b/lib/oidcc/token.ex @@ -136,7 +136,7 @@ defmodule Oidcc.Token do ...> "client_secret" ...> ) ...> - ...> # Get auth_code fromm redirect + ...> # Get auth_code from redirect ...> auth_code = "auth_code" ...> ...> Oidcc.Token.retrieve( @@ -182,7 +182,7 @@ defmodule Oidcc.Token do ...> "client_secret" ...> ) ...> - ...> # Get auth_code fromm redirect + ...> # Get auth_code from redirect ...> response = "JWT" ...> ...> Oidcc.Token.validate_jarm( @@ -226,7 +226,7 @@ defmodule Oidcc.Token do ...> "client_secret" ...> ) ...> - ...> # Get refresh_token fromm redirect + ...> # Get refresh_token from redirect ...> refresh_token = "refresh_token" ...> ...> Oidcc.Token.refresh( diff --git a/src/oidcc.erl b/src/oidcc.erl index 1b7736b..7998f91 100644 --- a/src/oidcc.erl +++ b/src/oidcc.erl @@ -444,7 +444,7 @@ client_credentials_token(ProviderConfigurationWorkerName, ClientId, ClientSecret end. %% @doc -%% Create Initiate URI for Relaying Party initated Logout +%% Create Initiate URI for Relaying Party initiated Logout %% %% See [https://openid.net/specs/openid-connect-rpinitiated-1_0.html#RPLogout] %% diff --git a/src/oidcc_client_context.erl b/src/oidcc_client_context.erl index 54f5e92..df6147c 100644 --- a/src/oidcc_client_context.erl +++ b/src/oidcc_client_context.erl @@ -179,7 +179,7 @@ from_manual(Configuration, Jwks, ClientId, ClientSecret) -> %% %% #oidcc_client_context{} = %% oidcc_client_context:from_manual( -%% Metdata, +%% Metadata, %% Jwks, %% <<"client_id">>, %% <<"client_secret">>, diff --git a/src/oidcc_logout.erl b/src/oidcc_logout.erl index bebc51e..882b46a 100644 --- a/src/oidcc_logout.erl +++ b/src/oidcc_logout.erl @@ -41,7 +41,7 @@ %% %% @doc -%% Initiate URI for Relaying Party initated Logout +%% Initiate URI for Relaying Party initiated Logout %% %% See [https://openid.net/specs/openid-connect-rpinitiated-1_0.html#RPLogout] %% diff --git a/test/oidcc_authorization_test.erl b/test/oidcc_authorization_test.erl index b11444f..c39583a 100644 --- a/test/oidcc_authorization_test.erl +++ b/test/oidcc_authorization_test.erl @@ -578,7 +578,7 @@ create_redirect_url_with_request_object_only_none_alg_test() -> create_redirect_url_with_request_object_only_none_alg_unsecured_test() -> PrivDir = code:priv_dir(oidcc), - %% Enable none algorythm for test + %% Enable none algorithm for test jose:unsecured_signing(true), {ok, ValidConfigString} = file:read_file(PrivDir ++ "/test/fixtures/example-metadata.json"), diff --git a/test/oidcc_userinfo_test.erl b/test/oidcc_userinfo_test.erl index e0c0ffd..a357146 100644 --- a/test/oidcc_userinfo_test.erl +++ b/test/oidcc_userinfo_test.erl @@ -277,7 +277,7 @@ jwt_encrypted_not_signed_test() -> distributed_claims_test() -> PrivDir = code:priv_dir(oidcc), - %% Enable none algorythm for test + %% Enable none algorithm for test jose:unsecured_signing(true), {ok, ConfigurationBinary} = file:read_file(PrivDir ++ "/test/fixtures/example-metadata.json"), @@ -374,7 +374,7 @@ distributed_claims_test() -> distributed_claims_invalid_json_resp_test() -> PrivDir = code:priv_dir(oidcc), - %% Enable none algorythm for test + %% Enable none algorithm for test jose:unsecured_signing(true), {ok, ConfigurationBinary} = file:read_file(PrivDir ++ "/test/fixtures/example-metadata.json"), @@ -456,7 +456,7 @@ distributed_claims_invalid_json_resp_test() -> distributed_claims_http_error_resp_test() -> PrivDir = code:priv_dir(oidcc), - %% Enable none algorythm for test + %% Enable none algorithm for test jose:unsecured_signing(true), {ok, ConfigurationBinary} = file:read_file(PrivDir ++ "/test/fixtures/example-metadata.json"), @@ -538,7 +538,7 @@ distributed_claims_http_error_resp_test() -> distributed_claims_invalid_source_mapping_test() -> PrivDir = code:priv_dir(oidcc), - %% Enable none algorythm for test + %% Enable none algorithm for test jose:unsecured_signing(true), {ok, ConfigurationBinary} = file:read_file(PrivDir ++ "/test/fixtures/example-metadata.json"),