everyauth icon indicating copy to clipboard operation
everyauth copied to clipboard

infinite fetchOauthUser with Google Reader Scope

Open matiasfha opened this issue 13 years ago • 2 comments

I try to use Google Reader Scope https://www.google.com/reader/api (this scope is right.. i test in OAuth 2.0 Playground)

But the app wait forever in step fetchOauthUser ... no error, just wait ...

starting step - getAuthUri ...finished step starting step - requestAuthUri ...finished step starting step - getCode ...finished step starting step - getAccessToken ...finished step starting step - fetchOAuthUser

Any ideas?

matiasfha avatar Apr 11 '12 21:04 matiasfha

I'm seeing the same exact behavior with any Youtube Data API v3 scope.

yzapuchlak avatar Feb 23 '13 20:02 yzapuchlak

I figured it out the root cause and a fix:

After Everyauth makes the oauth request with whatever scope you specify, it immediately turns around and makes another request to google to get certain user profile information. However, if you didn't include the user profile scope in your original oauth request to google, you won't have access to this API and fetchOAuthUser will never return.

To fix the issue, make sure to also include the following scope (Note: the scope field is ok with multiple scopes as long as they are space delimitted): https://www.googleapis.com/auth/userinfo.profile

yzapuchlak avatar Feb 26 '13 04:02 yzapuchlak