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

JWT scope verification based on query or mutation in the body #11

Open
stevehu opened this issue Mar 28, 2017 · 0 comments
Open

JWT scope verification based on query or mutation in the body #11

stevehu opened this issue Mar 28, 2017 · 0 comments

Comments

@stevehu
Copy link
Contributor

stevehu commented Mar 28, 2017

Now the graphql-security only verify the signature of the JWT token and checks if the token is expired. Given there is no OpenAPI specification to defined the scope for each endpoint. Actually, we only a single endpoint for graphql. In order to control who can run query and who can run mutation, we can parse the body to check the request type and then apply seviceId.r or serviceId.w to each request. This is based on the convention instead of specification. Also, this relies on a parser of body to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant