-
Notifications
You must be signed in to change notification settings - Fork 126
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
scope based validation #359
Comments
Hi @tcurdt, thanks for opening this issue. Indeed the docs are short on the https://github.com/dwyl/hapi-auth-jwt2/search?q=scope The test: hapi-auth-jwt2/test/scopes.test.js Lines 7 to 22 in 54369d3
Sample server config: hapi-auth-jwt2/test/scopes_server.js Lines 47 to 50 in 54369d3
Hope that's helpful. 💭 If you would like to create a Pull Request updating the docs once you have your code working, please do. 👍 |
@nelsonic thanks for all the links. I guess I wasn't quite clear in my question. I was talking about the validation with I was trying to get something along the lines of this working:
Given that the scope is available inside the context and can be referenced this has probably become more of a Happy to help with the docs once I get it all working. |
Ah, that makes sense. Yeah, that's definitely more of a |
I cannot seem to find any information in the docs on having different validations per scope.
Feels like this should be common requirement.
Is this possible?
The text was updated successfully, but these errors were encountered: