I am authenticating users through oAuth against Google as the IdP. I cannot, for the life of me, get Google to return anything but the ID and the picture url. I have requested the proper fields (email family_name, given_name, id), but I still only get back the ID and picture field.
I am using the "https://www.googleapis.com/userinfo" endpoint in a get request with the following query string values:
- state
- access_token
- fields(which are: email family_name given_name id)
- key
What I get back is the unique ID and the path to the user's thumbnail photo, but I do not get the other scope items.
Get Request:
I have also tried:
I even tried the deprecated, then de-deprecated endpoint with formfields:
No matter what I use, I still get back the same thing every time:
{
"id": "1067xxxxxxxx50",
"picture": "https://lh6.googleusercontent.com/-7RzMk8xmlAg/AAAAAAAAAAI/AAAAAAAAAAA/SfdfsdfsdfYaBtg/photo.jpg"
}
I even get the "200 OK" response. Any ideas?