-
Notifications
You must be signed in to change notification settings - Fork 42
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
Get user profile #9
Comments
The information available are defined by the scopes which can be (I've tested the returns value manually by inspecting the returned values so maybe more information can be displayed?) see https://developers.google.com/identity/protocols/googlescopes#google_sign-in You can combine scopes by adding space between them, for example if you want to get the profile information and the email information you can use the scope The scope value is used to create the Google authentication url and will define which information will be accessible: elixir-auth-google/lib/elixir_auth_google.ex Lines 10 to 15 in 2b1f9b0
|
@SimonLab looks good. thanks. 👍 |
Google Plus API is now deprecated:

After a while trying to find the documenatation I think the new endpoint to get the user profile is:
https://www.googleapis.com/oauth2/v3/userinfo?access_token=...
You don't need to enable other API on the Google console.
I've manage to get my user info directly via the browser, however I've got some error while parsing the response with
Poison
(I thin the request returned an error).I'm going to check if the request needs specific headers to work
The text was updated successfully, but these errors were encountered: