neginrabiee / socialauth-net

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

Issue with Social Connect #182

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have following scenario, I wanted to know how should i use SocialAuth-net 
library for it (is it possible, what would be best possible way)

Scenario:
I have a web app where I use social-auth to have people register to my app 
using social auth
 I do following to register people
  1. present them with social auth buttons (say fb, yahoo and twitter)
  2. once user clicks on a button regular oauth dance happens (thanks to the library i dont have to do a thing and control is returned to my app (its an mvc app and i am bringing the control back to my controller action, say Users/New ))
  3. To bring them back to my controller action i have specified page to callback under facebook settings page as www.mysite.com/Users/New
  4. on my controller action i check if the user email as returned by provider exist, if it does i update the auth key for this provider in my database, if user email does not exist i present him with new user flow and let him register and in the flow update the auth key in my db so next time i know the user is a registered user

Problem: 
This works great if i have one or many providers as far as the email address or 
userid used on different providers is same (say my fb email id is 
someone@somewhere.com and my msn email id is also same then my software will 
find him in the db and update correc auth key depending on which button user 
pressed to login)

I want to have a way on my site where user can enable and disable social 
connectivity, say a user who registered on my site using fb now wants to 
connect his/her twitter account, now I can not bring him/her back to User/New 
action controller (but then i can not specify more than one callback page on 
twitter settings) and same way when a fb logged on user wants to connect to say 
msn account (with different email address) there is no solid way of finding out 
user's intent

Please help

Original issue reported on code.google.com by vishal.a...@gmail.com on 26 Jun 2013 at 5:54

GoogleCodeExporter commented 8 years ago
Since Email is not guaranteed by all providers, there is a property ID which 
should instead be used for checking user Identity.

Original comment by deepakag...@gmail.com on 12 Jul 2013 at 1:08

GoogleCodeExporter commented 8 years ago
it wont work for reason below

Scenario: registering user with say ID

Setup: two different users say "John" and "Mike", John have fb account with 
id=uniqueone and Mike have twitter id=uniqueone
I have got john registered to my site and i stored his id, social provider, and 
other details in my db

Now I want to give an option to have John also enable his twitter account, so i 
created a page to enable twitter (with say on off toggle button) when John 
toggles the button i dont want him to go to registration page again.. but still 
show him the twitter login, can i pass on my return url to any social login 
provider.

Original comment by vishal.a...@gmail.com on 13 Jul 2013 at 7:29

GoogleCodeExporter commented 8 years ago
this is fixed for me for facebook, I have to still test it for other providers 
though, 
thanks for releasing the new version..

Original comment by vishal.a...@gmail.com on 5 Aug 2013 at 10:24

GoogleCodeExporter commented 8 years ago
cool! Glad, new release helped you.

regards,
Deepak

Original comment by deepak.a...@3pillarglobal.com on 6 Aug 2013 at 8:52