diff --git a/src/oidcc_authorization.erl b/src/oidcc_authorization.erl index 64175b4..8cc2b1e 100644 --- a/src/oidcc_authorization.erl +++ b/src/oidcc_authorization.erl @@ -447,6 +447,8 @@ essential_params(QueryParams) -> lists:filter( fun ({<<"scope">>, _Value}) -> true; + ({<<"response_type">>, _Value}) -> true; + ({<<"client_id">>, _Value}) -> true; (_Other) -> false end, QueryParams diff --git a/test/oidcc_authorization_SUITE.erl b/test/oidcc_authorization_SUITE.erl index 2bcf919..61de536 100644 --- a/test/oidcc_authorization_SUITE.erl +++ b/test/oidcc_authorization_SUITE.erl @@ -44,6 +44,8 @@ create_redirect_url_inl_gov(_Config) -> ?assertMatch( #{ + <<"client_id">> := <<"client_id">>, + <<"response_type">> := <<"code">>, <<"scope">> := <<"openid">>, <<"request">> := _ }, diff --git a/test/oidcc_authorization_test.erl b/test/oidcc_authorization_test.erl index c1c8f81..bc4bde6 100644 --- a/test/oidcc_authorization_test.erl +++ b/test/oidcc_authorization_test.erl @@ -211,6 +211,8 @@ create_redirect_url_with_request_object_test() -> ?assertMatch( #{ + <<"client_id">> := <<"client_id">>, + <<"response_type">> := <<"code">>, <<"scope">> := <<"openid">>, <<"should_be_in">> := <<"both">>, <<"request">> := _