Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

claims_map should support arrays too #792

Open
dbarrosop opened this issue Oct 18, 2023 · 3 comments
Open

claims_map should support arrays too #792

dbarrosop opened this issue Oct 18, 2023 · 3 comments

Comments

@dbarrosop
Copy link
Member

dbarrosop commented Oct 18, 2023

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.

@xmlking
Copy link

xmlking commented Nov 7, 2023

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

@dbarrosop
Copy link
Member Author

Yes

Copy link

stale bot commented May 5, 2024

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 stale bot added the stale label May 5, 2024
@dbarrosop dbarrosop removed the stale label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants