Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #331

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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