Skip to content

Commit

Permalink
fixup! feat: JARM
Browse files Browse the repository at this point in the history
  • Loading branch information
paulswartz committed Dec 30, 2023
1 parent 68c56fb commit f719a2c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/oidcc_profile.erl
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ enforce_s256_pkce(ClientContext0, Opts0) ->
limit_response_types(Types, ClientContext0) ->
#oidcc_client_context{provider_configuration = ProviderConfiguration0} = ClientContext0,
#oidcc_provider_configuration{
response_types_supported = ResponseTypes
response_types_supported = ResponseTypes0
} = ProviderConfiguration0,
ProviderConfiguration = ProviderConfiguration0#oidcc_provider_configuration{
response_types_supported = limit_values(Types, ResponseTypes)
response_types_supported = ResponseTypes
},
ClientContext = ClientContext0#oidcc_client_context{
provider_configuration = ProviderConfiguration
Expand Down Expand Up @@ -187,7 +187,8 @@ limit_values(_Limit, undefined) ->
limit_values(Limit, Values) ->
case [V || V <- Values, lists:member(V, Limit)] of
[] ->
undefined;
%% don't change the type of Values
[];
Filtered ->
Filtered
end.
Expand Down

0 comments on commit f719a2c

Please sign in to comment.