-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Description
JWKS URL Parsing
Updating schema over /admin/endpoint
with a dash separated subdomain fails and results in the below error.
{
"errors": [
{
"message": "resolving updateGQLSchema failed because invalid character 'p' after top-level value (Locations: [{Line: 3, Column: 4}])",
"extensions": {
"code": "Error"
}
}
]
}
The following url would work in v23 and migrating to v24.0.5 schema validation threw an error:
# Dgraph.Authorization {"jwkurl": "https://dash-seperated-subdomain-api.example.com/.well-known/jwks"}
To Reproduce
Add a subdomain such as to the schema.graphql
file and update the schema over the /admin/schema
endpoint.
# Dgraph.Authorization {"jwkurl": "https://dash-seperated-subdomain-api.example.com/.well-known/jwks"}
this behavior is the same when using multiple urls as in
# Dgraph.Authorization {"jwkurls": ["https://dash-seperated-subdomain-api.example.com/.well-known/jwks"]}