madscientistone / socialauth-net

Automatically exported from code.google.com/p/socialauth-net
0 stars 0 forks source link

The social auth for google was working fine until today: HELP!: #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The social auth for google was working fine until today: HELP!:

Server Error in '/gce' Application.
--------------------------------------------------------------------------------

Invalid Request Token recevied.
Provider returned: 
openid.ns=http://specs.openid.net/auth/2.0&openid.mode=id_res&openid.op_endpoint
=https://www.google.com/accounts/o8/ud&openid.response_nonce=2011-11-08T16:02:53
ZpIlJlzZAr8MVaQ&openid.return_to=https://www.golfclubelite.com:443/gce/socialaut
h/validate.sauth&openid.assoc_handle=AMlYA9VsKTSGfbU-02G1sRhBlC3_ZrWxHDW7oWQgNV-
dHH-Hmuus_l84&openid.signed=op_endpoint,claimed_id,identity,return_to,response_n
once,assoc_handle,ns.ext1,ext1.mode,ext1.type.firstname,ext1.value.firstname,ext
1.type.email,ext1.value.email,ext1.type.language,ext1.value.language,ext1.type.l
astname,ext1.value.lastname&openid.sig=HWwiJ3NdVT4nrnZHAg6v2OA7dNo&openid.identi
ty=https://www.google.com/accounts/o8/id?id&openid.claimed_id=https://www.google
.com/accounts/o8/id?id&openid.ns.ext1=http://openid.net/srv/ax/1.0&openid.ext1.m
ode=fetch_response&openid.ext1.type.firstname=http://axschema.org/namePerson/fir
st&openid.ext1.value.firstname=Brian&openid.ext1.type.email=http://axschema.org/
contact/email&openid.ext1.value.email=brianprato@gmail.com&openid.ext1.type.lang
uage=http://axschema.org/pref/language&openid.ext1.value.language=en-US&openid.e
xt1.type.lastname=http://axschema.org/namePerson/last&openid.ext1.value.lastname
=P 
Description: An unhandled exception occurred during the execution of the 
current web request. Please review the stack trace for more information about 
the error and where it originated in the code. 

Exception Details: Brickred.SocialAuth.NET.Core.OAuthException: Invalid Request 
Token recevied.
Provider returned: 
openid.ns=http://specs.openid.net/auth/2.0&openid.mode=id_res&openid.op_endpoint
=https://www.google.com/accounts/o8/ud&openid.response_nonce=2011-11-08T16:02:53
ZpIlJlzZAr8MVaQ&openid.return_to=https://www.golfclubelite.com:443/gce/socialaut
h/validate.sauth&openid.assoc_handle=AMlYA9VsKTSGfbU-02G1sRhBlC3_ZrWxHDW7oWQgNV-
dHH-Hmuus_l84&openid.signed=op_endpoint,claimed_id,identity,return_to,response_n
once,assoc_handle,ns.ext1,ext1.mode,ext1.type.firstname,ext1.value.firstname,ext
1.type.email,ext1.value.email,ext1.type.language,ext1.value.language,ext1.type.l
astname,ext1.value.lastname&openid.sig=HWwiJ3NdVT4nrnZHAg6v2OA7dNo&openid.identi
ty=https://www.google.com/accounts/o8/id?id&openid.claimed_id=https://www.google
.com/accounts/o8/id?id&openid.ns.ext1=http://openid.net/srv/ax/1.0&openid.ext1.m
ode=fetch_response&openid.ext1.type.firstname=http://axschema.org/namePerson/fir
st&openid.ext1.value.firstname=Brian&openid.ext1.type.email=http://axschema.org/
contact/email&openid.ext1.value.email=brianprato@gmail.com&openid.ext1.type.lang
uage=http://axschema.org/pref/language&openid.ext1.value.language=en-US&openid.e
xt1.type.lastname=http://axschema.org/namePerson/last&openid.ext1.value.lastname
=P

Source Error: 

An unhandled exception was generated during the execution of the current web 
request. Information regarding the origin and location of the exception can be 
identified using the exception stack trace below.  

Stack Trace: 

[OAuthException: Invalid Request Token recevied.
Provider returned: 
openid.ns=http://specs.openid.net/auth/2.0&openid.mode=id_res&openid.op_endpoint
=https://www.google.com/accounts/o8/ud&openid.response_nonce=2011-11-08T16:02:53
ZpIlJlzZAr8MVaQ&openid.return_to=https://www.golfclubelite.com:443/gce/socialaut
h/validate.sauth&openid.assoc_handle=AMlYA9VsKTSGfbU-02G1sRhBlC3_ZrWxHDW7oWQgNV-
dHH-Hmuus_l84&openid.signed=op_endpoint,claimed_id,identity,return_to,response_n
once,assoc_handle,ns.ext1,ext1.mode,ext1.type.firstname,ext1.value.firstname,ext
1.type.email,ext1.value.email,ext1.type.language,ext1.value.language,ext1.type.l
astname,ext1.value.lastname&openid.sig=HWwiJ3NdVT4nrnZHAg6v2OA7dNo&openid.identi
ty=https://www.google.com/accounts/o8/id?id&openid.claimed_id=https://www.google
.com/accounts/o8/id?id&openid.ns.ext1=http://openid.net/srv/ax/1.0&openid.ext1.m
ode=fetch_response&openid.ext1.type.firstname=http://axschema.org/namePerson/fir
st&openid.ext1.value.firstname=Brian&openid.ext1.type.email=http://axschema.org/
contact/email&openid.ext1.value.email=brianprato@gmail.com&openid.ext1.type.lang
uage=http://axschema.org/pref/language&openid.ext1.value.language=en-US&openid.e
xt1.type.lastname=http://axschema.org/namePerson/last&openid.ext1.value.lastname
=P]
   Brickred.SocialAuth.NET.Core.OAuth1_0Hybrid.HandleRequestToken(QueryParameters responseCollection) +423
   Brickred.SocialAuth.NET.Core.OAuth1_0Hybrid.LoginCallback(QueryParameters responseCollection, Action`1 AuthenticationCompletionHandler) +45
   Brickred.SocialAuth.NET.Core.Provider.LoginCallback(QueryParameters responseCollection, Action`1 AuthenticationHandler) +57
   Brickred.SocialAuth.NET.Core.BusinessObjects.SocialAuthUser.LoginCallback(String response) +154
   Brickred.SocialAuth.NET.Core.CallbackHandler.ProcessRequest(HttpContext context) +950
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET 
Version:4.0.30319.1 

Original issue reported on code.google.com by brianpr...@gmail.com on 8 Nov 2011 at 4:04

GoogleCodeExporter commented 9 years ago
I'm also seeing this. Any work arounds?

Original comment by dmar...@gmail.com on 10 Nov 2011 at 7:03

GoogleCodeExporter commented 9 years ago
Hi.. That sounds strange. I understand this problem abruptly started coming. 
While I try to replicate issue great if you guys can provide any of following 
info:

1. steps to replicate - if known.
2. Try login with an account which was working earlier. Does it works?
3. Is there any change in scope or any other thing done since it was working 
last?

regards,
Deepak

Original comment by deepakag...@gmail.com on 10 Nov 2011 at 7:54

GoogleCodeExporter commented 9 years ago
Its seems to happen more often if im tethering through my phone on my pc
for internet

Original comment by brianpr...@gmail.com on 10 Nov 2011 at 11:28

GoogleCodeExporter commented 9 years ago
I ran into this issue and debugged it a little bit. I saw it after I had 
previously authenticated and tried logging out and then tried to 
re-authenticate. The token wasn't getting passed back to the handler. According 
to their doc, it may not:

http://code.google.com/apis/accounts/docs/OpenID.html#oauth

"Note: If you request an OAuth token and none is returned, if may be because 
you've previously acquired an access token keyed to the specific user and 
scope. For privacy considerations, Google expects third-party applications to 
store OAuth tokens, which are long-lived, rather than request a new token every 
time the application needs to access the user's Google service."

I decided to get rid of using the hybrid auth and wen't straight for the OAuth 
v1. It now works great.

Original comment by dmar...@gmail.com on 10 Nov 2011 at 6:33

GoogleCodeExporter commented 9 years ago
Hi, just out of curiosity, did you just change authentication strategy to 
Oauth1a and it started working fine?

Original comment by deepakag...@gmail.com on 11 Nov 2011 at 4:58

GoogleCodeExporter commented 9 years ago
I looked on the google website and saw the requirements. I then set the 
strategy as follows:

OAuth1_0a oauth1_0aStrategy = new OAuth1_0a(this);
oauth1_0aStrategy.BeforeRequestingRequestToken += (x) => { x.Add(new 
QueryParameter("scope", GetScope())); };
return oauth1_0aStrategy;

That was the only change, everything else worked perfectly.

You guys should check out EasyOAuth in CodePlex.com. I like how they have a lot 
of the URLs specified in the web.config and it's an easy update from there 
without having to recompile.

Original comment by dmar...@gmail.com on 11 Nov 2011 at 6:02

GoogleCodeExporter commented 9 years ago
Hi.
Glad its resolved. "scope" fix is applied in v2.1 along with other minor fixes.
thanks

Original comment by daggar...@brickred.com on 14 Nov 2011 at 8:32