Logout from Microsoft/Yahoo/Google using WebAuthenticationBroker


Story by Abhilash on Windows

Share   

WebAuthenticationBroker is one of the handy API that I use to implement login in app using common login services like Microsoft, Google and Yahoo. This ensures that you don’t need to worry about implementing your own login functionalities. So how do you logout from these services when the user logout from your app? It’s quite simple, you only needs to send logout request to respective services.

Here are the logout urls for Microsoft/Yahoo/Google.

https://login.live.com/login.srf?wa=wsignout1.0
https://login.yahoo.com/config/login?logout=1
https://www.google.com/accounts/Logout

and in your code:

WebAuthenticationBroker.AuthenticateAsync(WebAuthenticationOptions.SilentMode, new Uri(logout-url-here));

Hope this helps.






comments powered by Disqus

Related Story   →

Fix: Start menu, Cortana, Notification Area not launching in windows 10

From Day 1 after upgrading to Windows 10, exactly 1 year before, there was an annoying bug which sta