cli
cli copied to clipboard
claims_map should support arrays too
For reference: https://hasura.io/docs/latest/auth/authentication/jwt/#x-hasura-allowed-roles
A potential solution would be allow passing a json as value, for instance:
[[hasura.jwtSecrets.claims_map]]
claim = 'x-hasura-allowed-roles'
valueJson = '["user", "something"]'
We may want to understand the use case first though as hasura-auth already fills this.
i see this in docs. is it already implemented ? https://github.com/nhost/nhost/blob/main/docs/docs/graphql/settings.mdx#L168-L171
Yes
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.