From the docs: https://graphql.dgraph.io/authorization/
# Dgraph.Authorization HEADER CLAIMS-KEY ALGORITHM KEY
CLAIMS-KEY
is the key inside the JWT that contains the claims relevant to Dgraph auth
# Dgraph.Authorization X-My-App-Auth https://my.app.io/jwt/claims HS256 "secretkey"
…expect[s] the JWT to contain custom claims object
"https://my.app.io/jwt/claims": { ... }
with the claims used in authorization rules.
The example given uses a URL (to a non-existent domain) for the CLAIMS-KEY
.
Is there any reason why I should use a URL instead of my own custom variable name such as data
or variables
? Is there an alternative purpose of using a URL here? If I use my own domain name what if anything should be the endpoint of that URL?