Skip to content

msal-react loginPopup broken #8269

@dansiviter

Description

@dansiviter

Core Library

MSAL.js (@azure/msal-browser)

Core Library Version

5.0.2

Wrapper Library

MSAL React (@azure/msal-react)

Wrapper Library Version

5.0.2

Public or Confidential Client?

Public

Description

Since upgrading from msal-react@3.0.20 loginPopup no longer works. The popup window does not clear and event is not propagated back to the parent window. Reverting back fixes it.

Error Message

No response

MSAL Logs

No response

Network Trace (Preferrably Fiddler)

  • Sent
  • Pending

MSAL Configuration

export const msalConfig: Configuration = {
    auth: {
        clientId: config.clientId,
        authority: config.authority,
        redirectUri: window.location.origin,
        postLogoutRedirectUri: "/logout",
        knownAuthorities: config.knownAuthorities,
    },
    system: {
        allowPlatformBroker: false, // Disables WAM Broker
    },
    cache: {
        cacheLocation: "localStorage",
    },
};

Relevant Code Snippets

instance.loginPopup({
  scopes: [`${msalConfig.auth.clientId}/.default`],
})

Reproduction Steps

TBC

Expected Behavior

Login popup closes on auth and parent window is notified.

Identity Provider

Entra ID (formerly Azure AD) / MSA

Browsers Affected (Select all that apply)

Edge

Regression

@azure/msal-react@3.0.20

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-unconfirmedA reported bug that needs to be investigated and confirmedmsal-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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions