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

Custom token #392

Closed
theohdv opened this issue Apr 13, 2017 · 7 comments
Closed

Custom token #392

theohdv opened this issue Apr 13, 2017 · 7 comments

Comments

@theohdv
Copy link

theohdv commented Apr 13, 2017

Hey,
I was looking for creating custom token (jwt) but i found nothing about that. Anyone can give me an hint or a link where it is explained ?

Thanks !

@manjeshpv
Copy link

manjeshpv commented Apr 13, 2017

@theohdv
Copy link
Author

theohdv commented Apr 13, 2017

yeah thanks but just found this doc: https://github.com/oauthjs/node-oauth2-server/wiki/Migrating-from-2.x-to-3.x .
My bad.

@theohdv theohdv closed this as completed Apr 13, 2017
@manjeshpv
Copy link

you migrating from 2.x to 3.x ?

@theohdv
Copy link
Author

theohdv commented Apr 13, 2017

No but documentation is not updated so i tried to use generateToken method (old documentation). And I found the migration doc which give the new model specifications.

@manjeshpv
Copy link

Can you join https://oauthjs.slack.com I need to discuss

@maxtruxa
Copy link
Member

maxtruxa commented Apr 13, 2017

With v3, the model's generateAccessToken and generateRefreshToken receive client, user and scope as arguments, making it possible to return JWTs as access/refresh tokens.

@nanachimi
Copy link

Any idea how to add custom fields to a response body of a token endpoint?
Details: oauthjs/express-oauth-server#67
Source code: https://github.com/nanachimi/oauthserverjs

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

4 participants