@@ -212,7 +212,14 @@ 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
+ }
217
+
218
+ # HTTPS redirect_uri with non-standard port
219
+ client_registration.allow with input.client_metadata as {
220
+ " application_type" : " web" ,
221
+ " client_uri" : " https://example.com/" ,
222
+ " redirect_uris" : [" https://example.com:8443/callback" ],
216
223
}
217
224
}
218
225
@@ -289,6 +296,14 @@ test_web_redirect_uri_localhost_not_allowed if {
289
296
}
290
297
}
291
298
299
+ test_web_redirect_uri_with_query if {
300
+ client_registration.allow with input.client_metadata as {
301
+ " application_type" : " web" ,
302
+ " client_uri" : " https://example.com/" ,
303
+ " redirect_uris" : [" https://example.com/callback?query=value" , " https://example.com?query=value" ],
304
+ }
305
+ }
306
+
292
307
test_native_redirect_uri_allowed if {
293
308
# This has all the redirect URIs types we're supporting for native apps
294
309
client_registration.allow with input.client_metadata as {
0 commit comments