reactjs - ReactJS 前端与 Azure AD B2C 错误 UnsupportedAuthorityValidation
问题描述
我对此有疑问,我将 ReactJS 前端与 Azure AD B2C 一起使用,但是当我运行 react 时显示此错误“Uncaught (in promise) UnsupportedAuthorityValidation”我仍然不明白为什么
import b2cauth from 'react-azure-adb2c';
b2cauth.initialize({
instance: 'https://FunSuitDev.onmicrosoft.com/tfp/',
tenant: 'FunSuitDev.onmicrosoft.com',
signInPolicy: 'B2C_1_ADB2C_API',
applicationId: 'ae82c7fe-a82b-448d-905f-6a63827e92a4',
cacheLocation: 'sessionStorage',
scopes: ['https://FunSuitDev.onmicrosoft.com/teastAPI/user_impersonation'],
redirectUri: 'http://localhost:3000',
postLogoutRedirectUri: window.location.origin,
});
b2cauth.run(() => {
ReactDOM.render(<App />, document.getElementById('root'));
serviceWorker.unregister();
});
解决方案
推荐阅读
- kubernetes - 如何在 Kubernetes 中浏览持久卷并使用 GUI 编辑文件?
- swift - iOS Corebluetooth setNotifyValue false 不在蓝牙设备上写入特征
- ios-simulator - 如何在 Visual Studio 中设置默认模拟设备?
- c# - 如何处理 BackgroundTask.Completed 事件
- r - 附加大 spatRaster 对象的范围以匹配 spatVector 的范围:计算区域统计数据并消除“范围不重叠错误?”
- android - 如何在 jetpack compose 中创建第二个抽屉
- perl - 操作系统的 Makefile.PL meta.json 先决条件,因此模块不会安装在 Windows 上
- google-colaboratory - Google Colab 删除所有属性