Azure的Google身份提供商中没有选择帐户页面

时间:2015-07-21 03:41:44

标签: azure azure-mobile-services

我正在使用Azure移动服务使用Google帐户登录。

即使用户只使用一个帐户登录,我也想强制使用Google帐户选择器。

我知道通过在url中使用prompt = select_account,我将能够实现这一点。但Azure不允许我通过调用client.login('google')来更改网址。

有人可以指出我正确的方向吗?

感谢

1 个答案:

答案 0 :(得分:2)

在调用移动服务之前,您是否尝试使用JavaScript中的client.logout()?

此外,可能需要清除正在使用的任何凭据缓存以重新绑定重定向到登录对话框(包括帐户选择器) 喜欢: sessionStorage.loggedInUser = null;

我在这里假设您没有使用PasswordVault凭据缓存? var vault = new Windows.Security.Credentials.PasswordVault();

我的参考: https://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-how-to-use-client-library/#caching

相关问题