mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-08-29 07:38:33 +00:00
Allow non-default https port
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user