nguyentientoan / socialauth-net

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

Error with Windows Live data being parsed by SocialAuth #198

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Unknown - appears intermittently 
2.
3.

What is the expected output? What do you see instead?
A user to log in, the SocialAuth component is throwing a DataParsingException.

What version of the product are you using? On what operating system?
2.1.0, Windows 2008R2, ASP.Net 4.5

Please provide any additional information below.
Beginning on 2.11.2014, soome users are receiving the following error when 
logging in the the Windows Live provider.  This issue started around 2/11/2014 
and we have not had any issue for over a year.  Even the users who are 
experiencing problems previously were able to log in successfully.  This issues 
appears only to affect the Windows Live provider.  The following error is being 
thrown:

{I have hidden the users data fields}

Brickred.SocialAuth.NET.Core.DataParsingException 
An error occurred while parsing profile data. Provider returned: { "id": 
"redacted", "name": "xxxen xxxon", "first_name": "Kaxxx", "last_name": "Jaxxx", 
"link": "https://profile.live.com/", "birth_day": 17, "birth_month": 12, 
"birth_year": null, "gender": null, "emails": { "preferred": 
"karxxx@xxxxxes.edu", "account": "karxxx@xxxxxes.edu", "personal": 
"karxxx@xxxxxes.edu", "business": null }, "locale": "en_US", "updated_time": 
"2014-02-15T03:20:41 0000" } 

Any assistance on this issues would be greatly appreciated.

Original issue reported on code.google.com by chadis...@gmail.com on 17 Feb 2014 at 1:56

GoogleCodeExporter commented 8 years ago
My apologies, I said I was using version 2.1, I am actually using version 2.3.  
In addition I have found that the problem is when a user does not have a 
profile picture.  Prior to 2/11/2014, the ProfilePictureURL was being set to 
https://js.live.net/static/img/DefaultUserPicture.png for these users.  It 
appears Microsoft has removed this images so when GetProfile() method of the 
MSNWrapper class calls:
 token.Profile.ProfilePictureURL = strategy.ExecuteFeed(ProfilePictureEndpoint, this, token, TRANSPORT_METHOD.GET).ResponseUri.AbsoluteUri.Replace("\"", "");

It attempts to call the URL and fails.  Further, browsing to the images reveals 
it to be return a 404.

Original comment by chadis...@gmail.com on 17 Feb 2014 at 7:20

GoogleCodeExporter commented 8 years ago
I wasn't able to replicate this however additional check is applied in 2.4.1.

Original comment by deepak.a...@3pillarglobal.com on 25 Feb 2014 at 9:08