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() {
188
188
. and ( move |req : & Request | {
189
189
let query_pairs = form_urlencoded:: parse ( & req. body ) . collect :: < HashMap < _ , _ > > ( ) ;
190
190
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`" ) ;
197
193
return false ;
198
194
}
199
195
if query_pairs
@@ -271,12 +267,8 @@ async fn pass_private_key_jwt() {
271
267
. and ( move |req : & Request | {
272
268
let query_pairs = form_urlencoded:: parse ( & req. body ) . collect :: < HashMap < _ , _ > > ( ) ;
273
269
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`" ) ;
280
272
return false ;
281
273
}
282
274
if query_pairs
You can’t perform that action at this time.
0 commit comments