Open phyllisstein opened 6 years ago
I was running into this too, and found that I had to add permission
to the response_type
, and openid
to the scope in the authorize call.
@dylanscott That did the trick! Thanks so much for sharing your solution. I'mma leave this open as a nudge to update the docs, but it seems to work great.
Found this trying to diagnose an error which occurred as of today, with previously working code.
Because it might be helpful to people who find this issue in the future , as of today, Google's auth response now only includes a picture
url if you have explicitly set a profile picture.
Hey folks! This is not wildly urgent, but I've been working on implementing authentication through Google and I'm having some trouble grabbing the
profile
-scope data for a GSuite domain. I'm not sure whether the issue is that GSuite or my application is misconfigured, so I was hoping you could provide some troubleshooting guidance.The flow in the app is this. On the frontend, I call
gapi.auth2.authorize
to retrieve an ID token andPOST
it to my backend:On the backend, I pass the ID token to
https://www.googleapis.com/oauth2/v3/tokeninfo
to validate it:After walking through the signup flow, I get a valid token back---but according to the
tokeninfo
endpoint, it only includesemail
andemail_verified
alongside the usual JWT claims:The documentation at https://developers.google.com/identity/sign-in/web/backend-auth seems to suggest that
GET
ting thetokeninfo
endpoint should includename
,picture
, andlocale
as well, but try as I may I can't get them into the JWT payload. My GSuite account should---I believe---have all three configured through the "Users" panel of the admin interface.Any idea what I might be doing wrong?