Base solution for your next web application
Open Closed

Switching OAuth user #3231


User avatar
0
commondesk created

Hey,

I'm trying to allow users to log out of the system and register with another OAuth account.

For example, if you logged in with your Office 365 Account <a href="mailto:[email protected]">[email protected]</a>, I want to be able to say no, I want to login with a different Office 365, say <a href="mailto:[email protected]">[email protected]</a>.

Currently, what happens is, even tho I logged out, I am still logged into my Microsoft Account via the session. When I press the button to try to login with Microsoft OAuth, it goes, oh I can tell you're already authenticated and proceeds to log me in with the user I just tried to logout with <a href="mailto:[email protected]">[email protected]</a>.

Is there any way around this. The end result is that users are stuck with the first account they logged in with unless they go to the microsoft.com website and log in there. But I don't want to do that.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If you want to do this, only way I think go to microsoft.com and logout first as well. Becasue, when you logout from AspNet Zero, you only logout from AspNet Zero. Then when you want to login again, AspNet Zero redirects you to microsoft.com and microsoft.com says you are already logged in and it redirects user to AspNet Zero again.

    Thanks.