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

How to add custom claims in JWT payload? #9

Open
markusgraube opened this issue Jul 3, 2017 · 7 comments
Open

How to add custom claims in JWT payload? #9

markusgraube opened this issue Jul 3, 2017 · 7 comments

Comments

@markusgraube
Copy link
Contributor

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 the AuthProvider would be used as JWT payload? Currently, only the field id of this dict is used. Or do I miss something?

@PyB1l
Copy link
Member

PyB1l commented Jul 3, 2017

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?

@markusgraube
Copy link
Contributor Author

Yes, that is exactly what I meant.

@PyB1l
Copy link
Member

PyB1l commented Jul 5, 2017

I 'm about to add your functionality within the week.

@markusgraube
Copy link
Contributor Author

Perfect. I can offer you some help, if you want

@el-aro
Copy link

el-aro commented Oct 18, 2017

is this function already on the library?

@PyB1l
Copy link
Member

PyB1l commented Oct 19, 2017

I will merge your feature on Saturday , thanks for your patience.

@el-aro
Copy link

el-aro commented Jan 21, 2018

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.

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

3 participants