Windows Live SDK doesn't LogOut()

眉间皱痕 提交于 2019-12-06 04:04:53

check your scope. if you use wl.signin, you cannot log out via code anymore because it's single sign in. Try to use wl.basic instead. More about scopes here. When you accidently used the wl.signin you have to log in your dashboard an remove the app connection by hand.

this is the expected behaviour. Please take a look at the following link.

If the user signs in to Windows 8 with a Microsoft account or a local or domain account that is connected to a Microsoft account, providing a custom sign-out button has no effect. So the only way to have a user connect to apps with different Microsoft Accounts is if the user has not associated his Microsoft Account with Windows 8.

Hope this helps...

Make sure you don't use "wl.signin" in your scopes. If you have been testing your app with this in, go into your account preferences for your live account and remove this option from the app's access. This will now allow more than one user to sign in.

    private LiveAuthClient authClient;

private void PhoneApplicationPage_Loaded_1(object sender, RoutedEventArgs e)
{
    this.authClient = new LiveAuthClient("yourclientidhere");
}
then you can call this.authClient.Logout(); when you want to change users.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!