的Windows Live SDK不退出() [英] Windows Live SDK doesn't LogOut()

查看:229
本文介绍了的Windows Live SDK不退出()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

微软的Live ID现在被称为Microsoft帐户。说了这么多,让我们说我登录到Windows 8为 sam@email.com 并运行一个应用程序。



这是应用程序使用实时SDK来访问我的Microsoft帐户配置文件。之前,它可以这样做,但是,我必须给它明确许可并登录。到目前为止,完美。



虽然我给了应用程序的权限 sam@email.com 我想将其更改为 janet@email.com 所以我单击该应用程序的<大骨节病>注销按钮,从SDK查询 LiveAuthClient.CanLogout()。令人困惑的是,该SDK返回false(我不能注销)。



为什么不呢?一旦当前的Windows 8用户登录到Windows 8应用程序使用的Windows Live SDK,他们怎么能注销(当CanLogOut()总是返回false)?是否有设置或东西允许这样做?




原来,这个问题的答案(http://stackoverflow.com/questions/13294496 /罐的非Windows的8-活SDK使用,另一个微软账户,其他超的电流)是不准确的。



解决方案

检查范围。
如果你使用 wl.signin ,你无法通过代码注销了,因为它在单点登录。尝试使用 wl.basic 来代替。更多关于作用域这里。当你不小心使用了 wl.signin 你必须登录仪表板的手工删除该应用程序的连接。


Microsoft Live ID is now called Microsoft Account. Having said that, let's say I log into Windows 8 as sam@email.com and run an app.

That app uses the Live SDK to access my Microsoft Account profile. Before it can do so, however, I must give it explicit permission and log in. So far, perfect.

Though I gave the app permission to sam@email.com I want to change it to janet@email.com so I click the app's Logout button which queries LiveAuthClient.CanLogout() from the SDK. Confusingly, the SDK returns false (I cannot log out).

Why not? Once the current Windows 8 user has logged into a Windows 8 app using the Windows Live SDK, how can they log out (when CanLogOut() always returns false)? Is there a setting or something to allow this?

Turns out that this question's answer (http://stackoverflow.com/questions/13294496/can-the-windows-8-live-sdk-use-another-microsoft-account-other-than-the-current) is inaccurate.

解决方案

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.

这篇关于的Windows Live SDK不退出()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆