File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
crates/oidc-client/tests/it/types Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -188,12 +188,8 @@ async fn pass_client_secret_jwt() {
188188 . and ( move |req : & Request | {
189189 let query_pairs = form_urlencoded:: parse ( & req. body ) . collect :: < HashMap < _ , _ > > ( ) ;
190190
191- if query_pairs
192- . get ( "client_id" )
193- . filter ( |s| * s == CLIENT_ID )
194- . is_none ( )
195- {
196- println ! ( "Wrong or missing client ID" ) ;
191+ if query_pairs. contains_key ( "client_id" ) {
192+ println ! ( "`client_secret_jwt` client authentication should not use `client_id`" ) ;
197193 return false ;
198194 }
199195 if query_pairs
@@ -271,12 +267,8 @@ async fn pass_private_key_jwt() {
271267 . and ( move |req : & Request | {
272268 let query_pairs = form_urlencoded:: parse ( & req. body ) . collect :: < HashMap < _ , _ > > ( ) ;
273269
274- if query_pairs
275- . get ( "client_id" )
276- . filter ( |s| * s == CLIENT_ID )
277- . is_none ( )
278- {
279- println ! ( "Wrong or missing client ID" ) ;
270+ if query_pairs. contains_key ( "client_id" ) {
271+ println ! ( "`private_key_jwt` client authentication should not use `client_id`" ) ;
280272 return false ;
281273 }
282274 if query_pairs
You can’t perform that action at this time.
0 commit comments