Angular 令牌调用在隐藏的iFrame 8+;
我有上述配置的角度应用。我正在使用msal angular库中的MsalInterceptor。在microsoft窗口中登录后,我被重定向到应用程序,在该应用程序中我收到错误:“令牌调用在隐藏的iframe中被阻止”,并且在此之后,另一个“令牌更新由于超时而失败”。问题在于沉默的方法失败了。我看到更多的人有这个问题,这里描述:。 即使用户在本地存储中有令牌,也存在此错误。我想这可能只是一个警告,我可以捕捉到错误并充当已登录的用户,但不会,因为有时用户实际上没有令牌,然后应用程序崩溃。有没有人有过类似的问题并处理过Angular 令牌调用在隐藏的iFrame 8+;,angular,msal.js,msal-angular,Angular,Msal.js,Msal Angular,我有上述配置的角度应用。我正在使用msal angular库中的MsalInterceptor。在microsoft窗口中登录后,我被重定向到应用程序,在该应用程序中我收到错误:“令牌调用在隐藏的iframe中被阻止”,并且在此之后,另一个“令牌更新由于超时而失败”。问题在于沉默的方法失败了。我看到更多的人有这个问题,这里描述:。 即使用户在本地存储中有令牌,也存在此错误。我想这可能只是一个警告,我可以捕捉到错误并充当已登录的用户,但不会,因为有时用户实际上没有令牌,然后应用程序崩溃。有没有人有
Configuration:
"@azure/msal-angular": "^1.1.2",
"msal": "^1.4.4",
"rxjs": "~6.4.0",
Angular 8+
export const msalConfig: Configuration = {
auth: {
clientId: environment.msalModule.clientID,
authority: environment.msalModule.authority,
redirectUri: environment.msalModule.redirectUri,
validateAuthority: true,
postLogoutRedirectUri: environment.msalModule.redirectUri,
navigateToLoginRequestUrl: true
},
cache:
{
cacheLocation: 'localStorage',
}
}
export const angularConfig: MsalAngularConfiguration = {
popUp: false,
consentScopes: [
'user.read',
environment.msalModule.appScope
],
protectedResourceMap: protectedResourceMap
}