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

Specify JWT scope #29

Closed
BobbyKostadinov opened this issue Jul 28, 2016 · 2 comments
Closed

Specify JWT scope #29

BobbyKostadinov opened this issue Jul 28, 2016 · 2 comments
Milestone

Comments

@BobbyKostadinov
Copy link

Hey

Is there a way to specify the scope for JWT in order to include more details from the id_token ?

Thanks

@burton-scalefastr
Copy link

I think it has to go into the authenticate call:

    passport.authenticate('auth0', {
        clientID: conf.AUTH0.CLIENT_ID,
        domain: conf.AUTH0.DOMAIN,
        redirectUri: conf.AUTH0.CALLBACK_URL,
        audience: 'https://' + conf.AUTH0.DOMAIN + '/userinfo',
        responseType: 'code',
        scope: 'openid profile user_metadata app_metadata'
    }),

@joshcanhelp
Copy link
Contributor

For anyone looking for this now ... the sample above is correct in terms of where scopes go. These must be OIDC standard scopes, which user_metadata and app_metadata are not. If you need data outside of the standard scopes, you'll need to add custom claims.

joshcanhelp added a commit that referenced this issue Jun 28, 2019
Add information on ID token scopes. 

Closes #30, #29
joshcanhelp added a commit that referenced this issue Jul 1, 2019
Add information on ID token scopes. 

Closes #30, #29
@joshcanhelp joshcanhelp added this to the v1.2.0 milestone Jul 31, 2019
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