Skip to content

Commit

Permalink
Fix typos (#331)
Browse files Browse the repository at this point in the history
Found via `codespell -S deps -L te,aliasas`
  • Loading branch information
kianmeng authored Jan 10, 2024
1 parent 97dcc2a commit d57635e
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions lib/oidcc.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion lib/oidcc/client_registration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/oidcc/logout.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/oidcc/token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/oidcc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
%%
Expand Down
2 changes: 1 addition & 1 deletion src/oidcc_client_context.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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">>,
Expand Down
2 changes: 1 addition & 1 deletion src/oidcc_logout.erl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
%% </ul>

%% @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]
%%
Expand Down
2 changes: 1 addition & 1 deletion test/oidcc_authorization_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
8 changes: 4 additions & 4 deletions test/oidcc_userinfo_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit d57635e

Please sign in to comment.