Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I force re-authentication with the Windows Live OAuth API?

Is there a parameter I can pass to https://oauth.live.com/authorize that will force the user to login again?

The problem is if the user is logged in, it will redirect transparently back to my site, even if the user wants to use a different Windows Live account.

Twitter's OAuth API accepts "force_redirect=true", and Facebook accepts "auth_type=reauthenticate", but I can't find one for Windows Live.

like image 279
Sean Fujiwara Avatar asked Jan 08 '12 11:01

Sean Fujiwara


1 Answers

First redirect your user to:

https://login.live.com/oauth20_logout.srf?client_id={$Client_Id}&redirect_uri={$Redirect_URI}

It will log him off and then continue your coding !

like image 172
Ghulam Ali Avatar answered Oct 01 '22 16:10

Ghulam Ali