[v21.03] Consider Auth0 JWT structure where ROLE
claim is an array:
{
"https://dgraph.io/jwt/claims": {
"USER": "ctjlewis",
"ROLE": [
"Admin",
...
]
},
...
}
I have tried the following form for the add
rule but the request still fails unless I comment it out:
add: {
rule: "{$ROLE: { eq: \"Admin\" } }"
}
Is there a recommended approach for using the @auth
directive and array ROLE
JWT claim? It doesn’t seem immediately obvious to me if this is possible, and Auth0 does not let users configure how the claim is declared.