nguyentientoan / socialauth-net

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

SocialAuthUser.GetCurrentUser().GetContacts() uses HTTP instead of HTTPS, returns 401 error on Google #195

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Following example on 
https://code.google.com/p/socialauth-net/wiki/API_Reference.
2.Execute Login() then GetContacts() on redirect.

What is the expected output? What do you see instead?
A HTTP 401 "unauthorized" error was returned.

What version of the product are you using? On what operating system?
IIS 7.5, .NET 4.0, SocialAuth.NET v2.4. Problem on both Windows Server 2003 
(domain) and Windows 7 (localhost). 

Please provide any additional information below.

On VB.NET:
On Import.aspx, SocialAuthUser(PROVIDER_TYPE.GOOGLE).Login(PROVIDER_TYPE.GOOGLE)

Redirected to Default.aspx,
SocialAuthUser.GetCurrentUser().GetContacts(PROVIDER_TYPE.GOOGLE)

Method uses 
"http://www.google.com/m8/feeds/contacts/default/full/?max-results=1000" 
instead of 
"https://www.google.com/m8/feeds/contacts/default/full/?max-results=1000"

No way to change it manually other than calling ExecuteFeed(). No issue when 
calling 
ExecuteFeed("https://www.google.com/m8/feeds/contacts/default/full/?max-results=
1000", TRANSPORT_METHOD.GET, PROVIDER_TYPE.GOOGLE)

Please advise, or fix it if possible.

Original issue reported on code.google.com by in...@tankinlian.com on 20 Nov 2013 at 6:07

Attachments:

GoogleCodeExporter commented 8 years ago
Additional info:

GetProfile() and GetAccessToken() works fine.

Original comment by in...@tankinlian.com on 20 Nov 2013 at 6:14

GoogleCodeExporter commented 8 years ago
Couldn't replicate with existing code/accounts. Anyways, changed endpoint to 
https as it works too.

Thanks

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