dineshkummarc / socialauth-net

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

Twitter and Yahoo return exceptions #211

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I have set up SocialAuth.NET as per the Ingegration_Guide. I'm using custom GUI 
and combine social auth with classic Forms auth.
I'm using Twitter, Windows Live, LinkedIn and Yahoo providers for social 
logins. 

What is the expected output? What do you see instead?
Windows Live and Linked in work as expected, that is upon redirection and a 
call to 
SocialAuthUser.GetCurrentUser.GetProfile(PROVIDER_TYPE.NOT_SPECIFIED)
return an UserProfile object successfully.
However, Twitter and Yahoo throw exceptions at that point.
Twitter throws the following:
An error occurred while executing 
http://api.twitter.com/1.1/users/show.json?user_id=226560949 Request 
Parameters: 
oauth_consumer_key=DtK0KT1jMlynJNtyvb2Iw&oauth_nonce=1660844&oauth_signature_met
hod=HMACSHA1&oauth_timestamp=1425213573&oauth_token=226560949-92zsaDnBgyAPmbjxWK
OE9P7rGlczkTbk54r92C&oauth_version=1.0&oauth_signature=QNL5kxB6fZ/NLPgFXo5rh1JCI
= Forbidden! The remote server returned an error: (403) Forbidden.

I tried to enable different sections in Twitter app setup even though my 
application only needs name and email. I also regenerated the keys since the 
app record on Twitter was originally setup some years back. Nothing helped.

Yahoo generates:
https://mysite.com/SSL/SocialLogin.aspx?err=1&error_message=An error occurred 
while requesting Access Token at 
https://api.login.yahoo.com/oauth/v2/get_token?oauth_consumer_key=dj0yJmk9ZXhycD
Q3elJCeFdrJmQ9WOVNXOVRV3hXTnpnbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD0zOA--&oauth
_token=32.nJI5u3AGShclC5vvGVKPy4Qg6R1BnirdTDfts7DtOU599qdXQ7ENuecSygRC2BmFhJtziZ
L5.OMCXHHPUyrI1T89KuvvJJWXEDyX6C4Txb1BFtbh7dmFtLzw3yYvy8g2e7pR4HRf4_C48wB2A3iabg
83Eon_JmTGEvMEXLx9JgJMUxYN8IPXFCHml5DG24hDJzB2g--,32.nJI5u3AYtGShclC5vvGVKPy4Qg6
R1BnirdTDfts7DtOU599qdXQ7ENuecSygRC2BmFhJtziZL5.OMCXHHPUyrI1TKuvvJJWXEDyX6C4Txb1
BFtbamh7dmFtLzw3yYvy8g2e7pR4HRf4_C48wB2A3iabg83Eon_JmTGHzEvMEXLx9JgJMUxYN8IPXFCH
ml5DG24hDJzB2g--&oauth_signature_method=HMAC-SHA1,HMACSHA1&oauth_timestamp=14252
03469,1425203469&oauth_nonce=3096329,3096329&oauth_version=1.0,1.0&oauth_signatu
re=QHL/2X0bFvN9IrcgXrQsUTmGVMU=
with parameters 
oauth_consumer_key=dj0yJmk9ZXhycDQ3elJCeFdrJmQ9WVdrOVNXOVRVV3hXTnpnbWNHbzlNQS0tJ
nM9Y29uc3VtZXJzZWNyZXQmeD0z

What version of the product are you using? On what operating system?
2.4

Please provide any additional information below.
I've now spent more than two days trying to figure this out. I'd really 
appreciate deeply if someone could help me resolve these two issues.

Thanks,
Marek

Original issue reported on code.google.com by marek...@gmail.com on 1 Mar 2015 at 2:13