【发布时间】:2018-07-11 08:09:56
【问题描述】:
我在 JavaScript 中有一个使用 ADAL.js 框架的身份验证功能,它将用户重定向到 microsftonline 登录页面。之前我们可以使用 Microsoft 个人帐户和在 Azure AD 中创建的帐户成功进行身份验证,但现在它不能在 Microsoft 个人帐户中工作。
这是登录页面网址:
它返回以下错误:
AADSTS50020: We are unable to issue tokens from this api version for a Microsoft account.
Please contact the application vendor as they need to use version 2.0 of the protocol to support this.
这是我使用的代码:
var conf = {
instance: 'https://login.microsoftonline.com/',
tenant: 'common',
clientId: 'f69fde41-bc12-4a24-9833-10bef9704107',
postLogoutRedirectUri: 'http://localhost:1508/',
cacheLocation: 'localStorage',
callback: userSignedIn,
redirectUri: null
};
var authContext = new AuthenticationContext(conf);
【问题讨论】:
标签: javascript azure azure-active-directory adal.js