msal-browser's allowRedirectInIframe
doesn't work for B2C
#6043
Labels
b2c
Related to Azure B2C library-specific issues
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
msal-browser
Related to msal-browser package
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
2.37.0
Wrapper Library
Not Applicable
Wrapper Library Version
None
Public or Confidential Client?
Public
Description
We're using a
loginRedirect
flow in our Flutter Web application, using this plugin: https://pub.dev/packages/aad_oauthHowever, we have a specific use case where our Flutter Web app needs to be rendered in an iframe inside a React app. If the user was previously logged in to the Flutter Web app, the iframe can be loaded perfectly, but if the user is not logged in to the Flutter Web app, we get this error:
I tried adding this snippet to the
msalConfig
object used to initialize MSAL:But then this error is shown in the console:
We're testing this changes in
localhost
(no https), could the error be related to that? Or I'm missing extra configuration?Error Message
Msal Logs
No response
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Not applicable
Expected Behavior
Our Azure B2C login page is displayed inside the iframe
Identity Provider
Azure B2C Basic Policy
Browsers Affected (Select all that apply)
Chrome
Regression
No response
Source
External (Customer)
The text was updated successfully, but these errors were encountered: