我正在尝试将MSAL身份验证集成到我的应用程序中,但我找不到解决redirectUri值的解决方案。
这是我的配置文件:
export const msalConfig = {
auth: {
clientId: bundle id,
authority: https://login.microsoftonline.com/{your tenant ID})
redirectUri: ???,
},
cache: {
cacheLocation: 'sessionStorage', // This configures where your cache will be stored
storeAuthStateInCookie: false, // Set this to "true" if you are having issues on IE11 or Edge
},
};这款应用是一款网络应用,在iOS上使用时有capacitor://localhost作为链接,所以我不知道如何在Azure AD portal.Tried上配置它,将capacitor://localhost作为redirectUri,以及我在互联网上找到的不同方法,但它们都不起作用。

发布于 2022-09-29 08:06:31
重定向网址应遵循msauth.[Your_Bundle_Id]://auth格式。有关更多信息,请访问MSAL重定向URI格式要求。
https://stackoverflow.com/questions/73583636
复制相似问题