Quantcast
Channel: CameTooFar
Viewing all articles
Browse latest Browse all 45

Logout from Microsoft/Yahoo/Google using WebAuthenticationBroker

$
0
0

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.


Viewing all articles
Browse latest Browse all 45

Trending Articles