Skip to content

Commit

Permalink
Don't send the same parameters in query string and JWT for redirect U…
Browse files Browse the repository at this point in the history
…RL (#360)
  • Loading branch information
Stratus3D authored and maennchen committed Jul 26, 2024
1 parent cbd19a8 commit 3b0b522
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/oidcc_authorization.erl
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,6 @@ essential_params(QueryParams) ->
lists:filter(
fun
({<<"scope">>, _Value}) -> true;
({<<"response_type">>, _Value}) -> true;
({<<"client_id">>, _Value}) -> true;
({<<"redirect_uri">>, _Value}) -> true;
(_Other) -> false
end,
QueryParams
Expand Down
3 changes: 0 additions & 3 deletions test/oidcc_authorization_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ create_redirect_url_inl_gov(_Config) ->

?assertMatch(
#{
<<"client_id">> := <<"client_id">>,
<<"redirect_uri">> := <<"https://my.server/return">>,
<<"response_type">> := <<"code">>,
<<"scope">> := <<"openid">>,
<<"request">> := _
},
Expand Down
3 changes: 0 additions & 3 deletions test/oidcc_authorization_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ create_redirect_url_with_request_object_test() ->

?assertMatch(
#{
<<"client_id">> := <<"client_id">>,
<<"redirect_uri">> := <<"https://my.server/return">>,
<<"response_type">> := <<"code">>,
<<"scope">> := <<"openid">>,
<<"should_be_in">> := <<"both">>,
<<"request">> := _
Expand Down

0 comments on commit 3b0b522

Please sign in to comment.