WL.getLoginStatus无效 [英] WL.getLoginStatus not working

查看:70
本文介绍了WL.getLoginStatus无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿那里,

我正在使用Javascript API通过Live connect对我的webapp中的用户进行身份验证。在我的系统中连接用户时,我正在尝试执行以下代码:

i'm using the Javascript API to authenticate the users in my webapp via Live connect. When a user is connected in my system I'm trying to execute the following code:

WL.getLoginStatus(force = true).then(function(response){alert(" Your)状态是:"+ response.status)});

WL.getLoginStatus(force=true).then(function(response) { alert("Your status is: " + response.status) });

如果我正确理解了文档,那么库应该联系实时连接服务并获取用户的登录状态(如果是force参数)设置为true。但不幸的是,图书馆似乎没有这样做。

If i understand the docs correctly the library should contact the live connect service and get the login status of the user if the force parameter is set to true. But unfortunately the library doesn't seem to do that.

我想要做的是以下内容:如果用户已在我的系统中登录并注销例如account.live.com他或她也应该从我的系统退出(不是自动但在下一页呼叫)。

What I want to do is the following: If a user is signed in in my system and signs out at e.g. account.live.com he or she should be signed out from my system as well (not automatically but at the next page call).

请帮助我。

谢谢,

Hannes

推荐答案

嗨Hannes - 是WL.getLoginStatus没有返回正确的信息(您已退出应用程序并且仍在返回"已连接"),或者更多的问题是,当您退出Microsoft
帐户时,您不会自动退出网络应用程序不同的网站?
Hi Hannes -- is WL.getLoginStatus not returning the correct information (you signed out of your application and it's still returning "connected"), or is the issue more that you aren't automatically signed out of your web app when you sign out of your Microsoft Account on a different site?


这篇关于WL.getLoginStatus无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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