@@ -212,7 +212,7 @@ test_web_redirect_uri if {
212
212
client_registration.allow with input.client_metadata as {
213
213
" application_type" : " web" ,
214
214
" client_uri" : " https://example.com/" ,
215
- " redirect_uris" : [" https://example.com/second/callback" , " https://example.com/callback" ],
215
+ " redirect_uris" : [" https://example.com/second/callback" , " https://example.com/callback" , " https://example.com/callback?query=value " ],
216
216
}
217
217
}
218
218
@@ -289,6 +289,14 @@ test_web_redirect_uri_localhost_not_allowed if {
289
289
}
290
290
}
291
291
292
+ test_web_redirect_uri_with_query if {
293
+ client_registration.allow with input.client_metadata as {
294
+ " application_type" : " web" ,
295
+ " client_uri" : " https://example.com/" ,
296
+ " redirect_uris" : [" https://example.com/callback?query=value" , " https://example.com?query=value" ],
297
+ }
298
+ }
299
+
292
300
test_native_redirect_uri_allowed if {
293
301
# This has all the redirect URIs types we're supporting for native apps
294
302
client_registration.allow with input.client_metadata as {
@@ -387,4 +395,4 @@ test_reverse_dns_match if {
387
395
client_registration.reverse_dns_match (" example.com" , " com.example.app" )
388
396
not client_registration.reverse_dns_match (" example.com" , " org.example" )
389
397
not client_registration.reverse_dns_match (" test.com" , " com.example" )
390
- }
398
+ }
0 commit comments