-
Notifications
You must be signed in to change notification settings - Fork 12
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
How to add custom claims in JWT payload? #9
Comments
In your use case you need to have more user data encrypted within your token, so that a Javascript client that decrypts the token will have more information about request user. Am i getting it right? |
Yes, that is exactly what I meant. |
I 'm about to add your functionality within the week. |
Perfect. I can offer you some help, if you want |
is this function already on the library? |
I will merge your feature on Saturday , thanks for your patience. |
hey! im not sure if you had already merge that feature on the library. But if you still haven't i would not mind just asking, i'm lazy and i don't want to code something if the feature is already there. Thank you in advice. |
bottle-jwt is really great :)
I would really like if I could add some custom payload to JWT. So that the client can have some extra information.
What about if the whole dict representing a user returned by
authenticate_user
of theAuthProvider
would be used as JWT payload? Currently, only the fieldid
of this dict is used. Or do I miss something?The text was updated successfully, but these errors were encountered: