Skip to content

Commit

Permalink
pass preferred_auth_methods on (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekgorny authored Jun 13, 2024
1 parent d702f59 commit daf232f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/oidcc_cowboy_authorize.erl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ init(Req, Opts) ->

AuthorizationOpts = maps:merge(
#{nonce => Nonce, state => State, pkce_verifier => PkceVerifier},
maps:with([redirect_uri, scopes, state, pkce, url_extension], Opts)
maps:with([redirect_uri, scopes, state, pkce, url_extension, preferred_auth_methods], Opts)
),

maybe
Expand Down
2 changes: 1 addition & 1 deletion src/oidcc_cowboy_callback.erl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ init(Req, Opts) ->
end,
TokenOpts = maps:merge(
#{nonce => Nonce, scope => Scopes, pkce_verifier => PkceVerifier},
maps:with([redirect_uri, pkce, request_opts], Opts)
maps:with([redirect_uri, pkce, request_opts, preferred_auth_methods], Opts)
),
{ok, Token} ?=
retrieve_token(Code, ProviderId, ClientId, ClientSecret, RetrieveUserinfo, TokenOpts),
Expand Down

0 comments on commit daf232f

Please sign in to comment.