cli icon indicating copy to clipboard operation
cli copied to clipboard

claims_map should support arrays too

Open dbarrosop opened this issue 2 years ago • 3 comments

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.

dbarrosop avatar Oct 18 '23 07:10 dbarrosop

i see this in docs. is it already implemented ? https://github.com/nhost/nhost/blob/main/docs/docs/graphql/settings.mdx#L168-L171

xmlking avatar Nov 07 '23 07:11 xmlking

Yes

dbarrosop avatar Nov 07 '23 07:11 dbarrosop

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.

stale[bot] avatar May 05 '24 12:05 stale[bot]