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

Custom Claims Endpoint #643

Open
ArieJones opened this issue Aug 17, 2021 · 0 comments
Open

Custom Claims Endpoint #643

ArieJones opened this issue Aug 17, 2021 · 0 comments

Comments

@ArieJones
Copy link

Is your feature request related to a problem? Please describe.
We are wanting the ability to support more complex claims scenarios.. for example in scenarios in which the claims structure and logic might be too complex to put within individual fields within the USERS table

Describe the solution you'd like
An environment variable similar to what Hasura offers ( HASURA_GRAPHQL_AUTH_HOOK) maybe NHOST_GRAPHQL_AUTH_HOOK which would point to an endpoint in the custom api which would be used in the same manner as the Hasura implementation shown here https://github.com/hasura/graphql-engine/blob/master/community/boilerplates/auth-webhooks/nodejs-express/server.js

Describe alternatives you've considered
We've looked at various other solutions such as cobbling together some kind of json based string in a field in the USERS table but it becomes messy when you would have to update more than one account.

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

1 participant