Skip to content

Commit 506f162

Browse files
committed
Don't check for client_id in tests
1 parent c61d38c commit 506f162

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

crates/oidc-client/tests/it/types/client_credentials.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)