@@ -212,7 +212,7 @@ 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 " ],
216216 }
217217}
218218
@@ -289,6 +289,14 @@ test_web_redirect_uri_localhost_not_allowed if {
289289 }
290290}
291291
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+
292300test_native_redirect_uri_allowed if {
293301 # This has all the redirect URIs types we're supporting for native apps
294302 client_registration.allow with input.client_metadata as {
@@ -387,4 +395,4 @@ test_reverse_dns_match if {
387395 client_registration.reverse_dns_match (" example.com" , " com.example.app" )
388396 not client_registration.reverse_dns_match (" example.com" , " org.example" )
389397 not client_registration.reverse_dns_match (" test.com" , " com.example" )
390- }
398+ }
0 commit comments