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

OAuth2, v3 (userinfo) #1529

Closed
oleg-codaio opened this issue Jan 3, 2019 · 5 comments
Closed

OAuth2, v3 (userinfo) #1529

oleg-codaio opened this issue Jan 3, 2019 · 5 comments
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@oleg-codaio
Copy link

With the recent Google+ deprecation, the new approach to getting user info (for instance, as done in jaredhanson/passport-google-oauth2#51) seems to be to use the https://www.googleapis.com/oauth2/v3/userinfo endpoint. While v2 also works for now, but it'd be great to have support for this endpoint here (including TS definitions) and in https://developers.google.com/apis-explorer/.

See also #490, which was created 3 years ago back when (I'm guessing) that API weren't released.

@JustinBeckwith JustinBeckwith added triage me I really want to be triaged. 🚨 This issue needs some love. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jan 22, 2019
@yoshi-automation yoshi-automation removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Jan 28, 2019
@stokito
Copy link

stokito commented Jan 23, 2020

why exactly the https://www.googleapis.com/oauth2/v3/userinfo ?
It looks like the userinfo_endpoint from the https://accounts.google.com/.well-known/openid-configuration is https://openidconnect.googleapis.com/v1/userinfo
I checked and both endpoint are working and returns the same but the https://openidconnect.googleapis.com/v1/userinfo is advised in the discovery

some details https://developers.google.com/identity/protocols/OpenIDConnect#validatinganidtoken

@tugrul
Copy link

tugrul commented Mar 6, 2020

Google People API looks suitable to resolve this issue

{scope: ['email', 'profile']}
google.people({version: 'v1', auth}).people.get({resourceName: 'people/me', 
personFields: 'emailAddresses'}))

@kamranhossain
Copy link

@tugrul, thanks, man. Work for me.

@MohanHarsha-Kota
Copy link

@stokito I am getting ERR_CONNECTION_TIMED_OUT error when using the https://openidconnect.googleapis.com/v1/userinfo as the userinfo_endpoint, but this endpoint: https://www.googleapis.com/oauth2/v3/userinfo works fine. I don't know why!!

@sofisl
Copy link
Contributor

sofisl commented Feb 2, 2023

Seems like there's a solution, feel free to reopen if needed!

@sofisl sofisl closed this as completed Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

8 participants