Hey, i am building a site using blazor wasm with Microsoft Identity Platform. It basically works, if i use the site normally. It is planned tho to use it within a iframe. The sad thing is that with that the Authentication kinda breaks.
Login does work, Logout tho doesn't. I get the error "redirect_in_iframe" it's not allowed and MSAL tells me to use the popup APIs (or include MSAL.js, in top frame which i can't). After some more research i found that within MSAL.js a flag exists (since Dec 2020) called "allowRedirectInIframe". I just don't know how to set the flag on the C# / Blazor Wasm side. Blazor Wasm by default doesn't reference "msal.js" but "AuthenticationService.js". I am not sure where to find the flags at all.
Microsoft Authentication Library (MSAL) for JS. Contribute to AzureAD/microsoft-authentication-library-for-js development by creating an account on GitHub.