Cognito and Non Nested Claims

As it currently stands AWS Cognito doesn’t support nested claims in JWTs. The ability to refer to non nested values for authorization would be helpful. My apologies if this is already available and I have just overlooked it.

Edit: Alternatively if values could be parsed from a stringified map that would work.

We do support parsing custom claims as a string.
Issue: If JWT custom claim field is string, parse as JSON by dpeek · Pull Request #5513 · dgraph-io/dgraph · GitHub
Fix: fix(GraphQL): Custom Claim will be parsed as JSON if it is encoded as a string by arijitAD · Pull Request #5668 · dgraph-io/dgraph · GitHub
Let me know if this works for you.

1 Like