lacostabr / socialauth-net

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

SocialAuthUser.GetCurrentUser().Logout() with a given provider #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In our application, a user profile (local profile) can be connected with 
multiple social providers (using SocialAuth).

The process of linking the local profile to the social profile works smoothly.

Vice-versa, when we try to unlink the profiles, we would also like to do a 
"logout" of the SocialAuthUser for a single provider; we instead obtain a full 
logout from all linked providers.

We have a small workaround for the problem - that is 
HttpContext.Session.Remove("socialauthsession");

Still, this feels quite brutal, since it drops all of social auth sessions.

Could it be possible to pass a single provider to the 
SocialAuthUser.GetCurrentUser().Logout() function?

Original issue reported on code.google.com by paolo.lo...@gmail.com on 31 Oct 2012 at 2:57

GoogleCodeExporter commented 9 years ago
This should be an enhancement, since it's not actually an issue...

Original comment by paolo.lo...@gmail.com on 31 Oct 2012 at 2:58

GoogleCodeExporter commented 9 years ago
Hi,

At the moment logout() logs out user from all providers (only from application 
context! SocialAuth never logs out user from the provider itself). However, it 
is an interesting point and completely agree with paolo that it is an 
enhancement. We'll add it to our roadmap and since it doesn't seem to involve 
too much of effort, we'll try to have it in next release (but that is not 
happening anytime soon)

Anyways, once this is implemented, I'll add the solution here, so that you can 
easily modify library and use it for your purpose without waiting for release.

Deepak

Original comment by deepak.a...@3pillarglobal.com on 31 Oct 2012 at 3:15

GoogleCodeExporter commented 9 years ago
Resolved in 2.3.1

deepak

Original comment by deepak.a...@3pillarglobal.com on 18 Jan 2013 at 8:11