Allow non-default https port

This commit is contained in:
Michael Telatynski
2025-05-08 08:39:37 +01:00
parent ccdbf69e5f
commit e5a2debd4c
2 changed files with 6 additions and 3 deletions
@@ -31,9 +31,6 @@ secure_url(x) if {
url.host != "127.0.0.1"
url.host != "0.0.0.0"
url.host != "[::1]"
# Must be standard port for HTTPS
url.port == ""
}
host_matches_client_uri(_) if {
@@ -189,6 +189,12 @@ test_redirect_uris if {
"redirect_uris": [],
}
# HTTPS redirect_uri with non-standard port
client_registration.allow with input.client_metadata as {
"client_uri": "https://example.com/",
"redirect_uris": ["https://example.com:8443/callback"],
}
# Not required for the client_credentials grant
client_registration.allow with input.client_metadata as {
"grant_types": ["client_credentials"],