diff --git a/lib/oidcc/plug/authorization_callback.ex b/lib/oidcc/plug/authorization_callback.ex index 0e3b336..c6fa13c 100644 --- a/lib/oidcc/plug/authorization_callback.ex +++ b/lib/oidcc/plug/authorization_callback.ex @@ -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, @@ -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,