Answered by:
Logout From Yahoo after using OAuth login (MVC 5)

Question
-
User600651647 posted
Hi,
I am developing an MVC application where people can download Yahoo, MSN and Google contacts.
So, on the contacts download page users have to login using their normal Yahoo, MSN or Google account (OAuth).
After downloading the contacts how do I make the application to logout itselft from Yahoo account?
Thanks
Thursday, August 18, 2016 5:42 AM
Answers
-
User1724605321 posted
Hi robinspaul,
AFAIK, Log Out from my their Yahoo Account would require being able to access cookies set by Yahoo which is explicitly forbidden for security reasons: you can only access cookies on your own domain. The login with Yahoo is separate from your application. The user isn't truly logging into your site. They're logging into Yahoo and Yahoo is simply verifying the user identity with your site.
Best Regards,
Nan Yu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, October 14, 2016 7:28 AM
All replies
-
User-271186128 posted
Hi robinspaul,
With reference to this article: http://www.asp.net/mvc/overview/security/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on#off
Logging off your App and Logging in With Another Account
If you log on to your app with Facebook, , and then log out and try to log in again with a different Facebook account (using the same browser), you will be immediately logged in to the previous Facebook account you used. In order to use another account, you need to navigate to Facebook and log out at Facebook. The same rule applies to any other 3rd party authentication provider. Alternatively, you can log in with another account by using a different browser.
It seems that you need to navigate to Yahoo and log out at Yahoo.
Best regards,
DillionFriday, August 19, 2016 8:16 AM -
User600651647 posted
HI,
I am looking for a mechanism for people to Log Out from my their Yahoo Account after they complete downloading all the email ids from Yahoo. May be a button on my website and then my C# or Jquery code should log out from Yahoo.
Thanks,
Friday, August 19, 2016 8:48 AM -
User1724605321 posted
Hi robinspaul,
AFAIK, Log Out from my their Yahoo Account would require being able to access cookies set by Yahoo which is explicitly forbidden for security reasons: you can only access cookies on your own domain. The login with Yahoo is separate from your application. The user isn't truly logging into your site. They're logging into Yahoo and Yahoo is simply verifying the user identity with your site.
Best Regards,
Nan Yu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, October 14, 2016 7:28 AM