Skip to content

Embedded sign-in with MFA #8629

@komalkhatri08

Description

@komalkhatri08

Core Library

MSAL.js (@azure/msal-browser)

Wrapper Library

MSAL React (@azure/msal-react)

Public or Confidential Client?

Public

Description

So I am trying to implement embedded sign-in in my next JS app.
It works fine when policy does not have MFA. But in case of MFA, the redirection after entering user credentials, B2C internally redirects to MFA page inside iframe.
The user wants :

  1. Normal username/password sign-in to stay embedded in the iframe (as it is now)
  2. Only when B2C redirects to an MFA page (a different URL), that redirect should happen in window.top instead of inside the iframe
    The tricky part is that when loginRedirect is called, MSAL navigates the iframe to B2C's sign-in page, and from there B2C itself handles the flow—including redirecting to MFA if needed. So the MFA redirect isn't something our app code controls directly.

IF there is a solution to this , please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Awaiting response from the MSAL.js teamfeature-unconfirmedmsal-browserRelated to msal-browser packagemsal-reactRelated to @azure/msal-reactpublic-clientIssues regarding PublicClientApplicationsquestionCustomer is asking for a clarification, use case or information.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions