Blazor Wasm with Microsoft Identity Platform
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.
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md#configuration-options
System Options are basically what i am trying to find.
GitHub
microsoft-authentication-library-for-js/lib/msal-browser/docs/confi...
Microsoft Authentication Library (MSAL) for JS. Contribute to AzureAD/microsoft-authentication-library-for-js development by creating an account on GitHub.
0 Replies