Skip to content

Commit

Permalink
Expose preferred_auth_methods option in authorization callback (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Feb 20, 2024
1 parent cc97f6b commit 8ecc609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/oidcc/plug/authorization_callback.ex
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ defmodule Oidcc.Plug.AuthorizationCallback do
:client_id,
:client_secret,
:redirect_uri,
:preferred_auth_methods,
check_useragent: true,
check_peer_ip: true,
retrieve_userinfo: true,
Expand Down Expand Up @@ -165,7 +166,7 @@ defmodule Oidcc.Plug.AuthorizationCallback do
scopes = :oidcc_scope.parse(scope),
token_opts =
opts
|> Keyword.take([:request_opts])
|> Keyword.take([:request_opts, :preferred_auth_methods])
|> Map.new()
|> Map.merge(%{
nonce: nonce,
Expand Down

0 comments on commit 8ecc609

Please sign in to comment.