-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Having JWT support for authentication #254
Comments
If you already use JWT for authentication, feel free to share your code or suggest something in this conversation 😉 |
I would suggest having a global provider also have an "interceptor" of sorts to send data through the decorator. That is to say, after parsing the content of the token, I could make a database call to get more properties of the user from an external function before returning control to the main method controller. |
Thanks for the suggestion @wbhob , the feature is on its way. |
Added in v0.7.0 |
Is your feature request related to a problem? Please describe.
When developing SPA or mobile applications, the use of sessions and cookies for authentication may be difficult.
Describe the solution you'd like
FoalTS should offer a basic support to handle authentication with JWT.
The solution should:
@AuthenticateWithJWTHeader
to decode theAuthorization
header and fill the context with the user,The solution should not:
The text was updated successfully, but these errors were encountered: