@ azure / msal-angular注销退出到应用程序,但应用程序不显示

时间:2019-01-23 05:53:02

标签: angular authentication msal

注销后,重定向回Web应用程序URL的工作正常,并且浏览器控制台显示来自该应用程序的消息,指示该应用程序已正确引导,但是,屏幕停留在https://login.microsoftonline.com上,消息为“正在暂停”同时我们将您注销”。消息在5秒钟后变为“嗯...我们无法将您注销。您可能仍登录了某些应用程序。关闭浏览器以完成注销。”。

我的应用程序在另一个iframe中而不是在顶层内呈现,但我认为我无法对此产生影响;我只是没有参数调用msal.logout()。如果我的配置不正确,请在下面添加。

(页) https://login.microsoftonline.com/ / oauth2 / v2.0 / logoutsession

(iframe) https://login.live.com/logout.srf?iframed_by=https%3a%2f%2flogin.microsoftonline.com

(iframe) https://login.microsoftonline.com/login.srf?wa=wsignoutcleanup1.0

(iframe) https://iant8-xxxxx.azurewebsites.net/logged-out?sid=(a-guid)

我尝试过 -提琴手正在运行而未在运行 -chrome 71 / firefox 64

我的msal配置是

export const msalConfiguration: MsalConfig = {
  clientID: '<guid>',
  authority: 'https://login.microsoftonline.com/<guid>',
  redirectUri: 'https://iant8-xxxxx.azurewebsites.net/redirect',
  postLogoutRedirectUri: 'https://iant8-xxxxx.azurewebsites.net/logged-out',
  logger: msalLogger,
  consentScopes: ['user.read'],
  isAngular: true,
  protectedResourceMap: protectedResourceMap,
  piiLoggingEnabled: true
}

我无法使示例应用程序在https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/samples/MSALAngularDemoApp处出现相同错误而无法正常工作(开发分支,提交ac32c459c7398be02fe3f50afbd7d38e19d8ef0e)。

0 个答案:

没有答案