Recent change in api "https://www.googleapis.com/oauth2/v1/userinfo" output

2,045 views
Skip to first unread message

Roshan Dawrani

unread,
Sep 28, 2011, 8:08:19 AM9/28/11
to oauth...@googlegroups.com
Hi,

    Can someone please let me know where I can find the current status of the Google OAuth request made to "https://www.googleapis.com/oauth2/v1/userinfo?alt=json"?
    
Till a few weeks back, it used to return output of the form {"id": "123456789", "name": "Roshan Dawrani", "email":"roshan...@gmail.com","verified_email":true}, but now it returns only {"email":"roshan...@gmail.com","verified_email":true}. The "id" and the "name" attributes have gone away.

Can anyone throw some light on it please?

Cheers.

--
Roshan
Blog: http://roshandawrani.wordpress.com/
Twitter: @roshandawrani
Skype: roshandawrani

Roshan Dawrani

unread,
Sep 28, 2011, 8:19:04 AM9/28/11
to oauth...@googlegroups.com
I should have added that scopes requested are: "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"

Have "id", "name" gone away from the response of "https://www.googleapis.com/oauth2/v1/userinfo?alt=json" on purpose?

Cheers.

Marius Scurtescu

unread,
Sep 28, 2011, 12:42:46 PM9/28/11
to oauth...@googlegroups.com
Hi Roshan,

I just tested this and the output is as expected. Most likely you are not asking for the profile scope.

The alt=json parameter is not needed, json is the default.

Marius

Roshan Dawrani

unread,
Sep 28, 2011, 12:45:04 PM9/28/11
to oauth...@googlegroups.com
Hi Marius,


Is there anything I have missed in scopes?

Cheers.

Marius Scurtescu

unread,
Sep 28, 2011, 12:50:20 PM9/28/11
to oauth...@googlegroups.com
The scopes look OK. Are you properly encoding the space between them in the URL?

How does the URL look like? The request URL has no secrets in it, it is safe to email it.

Marius

Roshan Dawrani

unread,
Sep 28, 2011, 1:31:38 PM9/28/11
to oauth...@googlegroups.com
Hi Marius,

Yes, it looks like a "scope" issue on our side. The "scope" configuration I showed earlier is not being applied correctly when we finally invoke Google's authorization URL. I will try to resolve that issue at our end first.

Thanks for taking a look into it.

Cheers.
Reply all
Reply to author
Forward
0 new messages