即使 set * allowRedirectInIframe: true ,iframe azure 登錄也不起作用。這是我的嘗試。
MSAL 配置
const msalConfig = {
auth: {
clientId: "e440b5e5-3c66-43c0-8ab5-31a747c2377e",
authority: "https://login.microsoftonline.com/common",
redirectUri: "http://localhost:4200/"
},
cache: {
cacheLocation: "sessionStorage",
storeAuthStateInCookie: false,
secureCookies: false,
},
system: {
allowRedirectInIframe: true,
},
telemetry: {
application: {
appName: "My Application",
appVersion: "1.0.0",
},
},
};
錯誤

uj5u.com熱心網友回復:
allowRedirectInIframe是一個標志,用于控制在 iframe 中呼叫 MSAL.js 時是否會引發錯誤loginRedirect/acquireTokenRedirect(這樣做是為了防止您觀察到錯誤訊息)。它不控制 AAD 是否仍會阻止登錄頁面顯示在 iframe 中。
在 iframe 中呈現時,您的應用程式將需要使用彈出互動。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/506284.html
上一篇:AttributeError:“用戶”物件在嘗試驗證用戶電子郵件時沒有屬性“用戶”
下一篇:沒有密碼的wordpress登錄
