@@ -212,7 +212,14 @@ test_web_redirect_uri if {
212212 client_registration.allow with input.client_metadata as {
213213 " application_type" : " web" ,
214214 " 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" ],
216223 }
217224}
218225
@@ -289,6 +296,14 @@ test_web_redirect_uri_localhost_not_allowed if {
289296 }
290297}
291298
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+
292307test_native_redirect_uri_allowed if {
293308 # This has all the redirect URIs types we're supporting for native apps
294309 client_registration.allow with input.client_metadata as {
0 commit comments