在我的一个react项目中,我使用react-aad-msal进行身份验证。但是,我似乎有以下问题:
。
有没有人经历过类似的问题。下面是authProvider.js文件如下所示:
const config = {
auth: {
authority: `https://login.microsoftonline.com/${authority}`,
clientId,
validateAuthority: false,
redirectUri: window.location.origin,
},
cache: {
cacheLocation: 'localStorage',
storeAuthStateInCookie: true,
},
};
const authenticationParameters = {
scopes: ['profile', 'offline_access'],
};
const options = {
loginType: LoginType.Redirect,
tokenRefreshUri: `${window.location.origin}/auth.html`,
};提前谢谢你的帮助。
发布于 2021-12-07 12:19:22
请检查分配给应用程序身份验证和登录机制的任何条件访问策略,就像此策略应用于应用程序的服务主体、组织或应用程序一样,则它将优先于刷新令牌超时和发布以及访问令牌的默认值。

因此,要检查Azure AD中条件访问的身份验证会话控件,请检查在Security -->条件访问中配置的会话控制设置,如下所示,这些设置定义刷新令牌和会话行为:-
此外,确保在条件访问策略中的某些设置,如登录频率控制、持久浏览器会话控制等,在您的策略中根据您的要求正确设置或不启用。这些设置的配置请参阅以下参考图像:-


详情请参阅以下连结:-
https://stackoverflow.com/questions/70199460
复制相似问题