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

Google id_token #373

Closed
BilalYazbek opened this issue Dec 3, 2015 · 2 comments
Closed

Google id_token #373

BilalYazbek opened this issue Dec 3, 2015 · 2 comments

Comments

@BilalYazbek
Copy link

Hello,
Iam trying to retrieve google id_token, but iam unable to get it in any callback, neither r nor s

 hello('google').login().then(function(r){
});
  hello('google').api('me').then( function(s){
});

i try all the possible scopes but i was unable to get it.

  • r output:
    • access_token: xxxxx
    • authuser:xxxxx
    • client_id: xxxxx
    • expires:xxxxx
    • expires_in:xxxxx
    • hd:xxxxx
    • network:xxxxx
    • prompt:xxxxx
    • redirect_uri:xxxxx
    • scope:xxxxx
    • session_state:xxxxx
    • state:xxxxx
    • token_type:xxxxx
  • s output
    • circledByCount
    • displayName
    • domain
    • email
    • etag
    • first_name
    • gender
    • ...
@MrSwitch
Copy link
Owner

MrSwitch commented Dec 3, 2015

My understanding is an id_token is supplied as part of OpenID Connect authentication flow only. The HelloJS Google module alike Google's own Javascript libary uses the OAuth2 auth flow, id_token is not provided under the spec.

@MrSwitch MrSwitch closed this as completed Jan 5, 2016
@MarSoft
Copy link

MarSoft commented Sep 20, 2018

Not correct. id_token will be provided if you request it explicitly with response_type=token id_token rather than just default response_type=token.
Another question is how to ask Google to include that additional info (username and email etc) in the token. Probably it depends on scopes.

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