emonarafat / socialauth-net

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

Reusing Google access token via WCF #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi guys,

I have a particular setup in which a web client gets an access token and passes 
it to a WCF service which then tries to load the profile and process the 
details. I've tested this for Facebook/MSN and it works great. However when I 
try to use the passed in access token for Google I get an unauthorised error 
while trying to load the profile.

I noticed Facebook/MSN use OAuth2.0 where as Google is implemented through 
OAuth+Hybrid. Because I'm new to OAuth is there a limit on reusing an OAuth1.0 
token to get something like a profile from a provider?

Software Versions
------------------
SocialAuth.Net v2.3
IIS7.0
.NET4.0

cheers,
Varinder

Original issue reported on code.google.com by vsaul...@gmail.com on 16 Aug 2012 at 1:23

GoogleCodeExporter commented 9 years ago
This is resolved , the problem was with token secret not correctly set.
Also just wondering if OAuth2.0 will be implemented for existing providers as 
some of them have already mentioned that OAuth1.0 will be depreciated.

Varinder

Original comment by vsaul...@gmail.com on 18 Aug 2012 at 4:55

GoogleCodeExporter commented 9 years ago
Hi Varinder,
Glad your problem resolved. We haven't tried SocialAuth.NET with WCF yet but 
sounds great that it worked for you(which logically should as per our design). 
Great if you can add more details on how are you blending SocialAuth.NET with 
WCF.

Coming to your query!
The reason we've not migrating yet includes:
1. Its working code and none has depreciated yet
2. With Hybrid and OAuth1.0 you get Email ID of logged in user and friends (a 
much popular and needed thing) while only few OAuth 2.0 provide this 
information.

We'll definitely switch to 2.0 and have it in our thought stack once absolutely 
needed. 

Deepak

Original comment by daggar...@brickred.com on 18 Aug 2012 at 9:45

GoogleCodeExporter commented 9 years ago
Hi Deepak,

Thanks for the reply.
We are trying to use WCF + OAuth so that different type of clients 
(mobile,web,desktop) can independently obtain an access token and then connect 
to our WCF using it. Just trying to implement a  centralized authentication 
mechanism.

Varinder

Original comment by vsaul...@gmail.com on 19 Aug 2012 at 11:59