Skip to content

[MSAL for React] Sending GET request to undefined url on Auth #970 #7640

Open
@Kolar23

Description

@Kolar23

Core Library

MSAL.js (@azure/msal-browser)

Core Library Version

4.7.0

Wrapper Library

MSAL React (@azure/msal-react)

Wrapper Library Version

3.0.6

Public or Confidential Client?

Public

Description

Hi there!

I'm getting the following error in chrome console:

GET https:/login.microsoftonline.com/{TENANT_ID}/oauth2/v2.0/undefined 404

For some reason it is sending a GET request with a /undefined attached to the end of it.

Therefore I cannot authenticate and use my application. It was working fine until today

Error Message

No response

MSAL Logs

No response

Network Trace (Preferrably Fiddler)

  • Sent
  • Pending

MSAL Configuration

export const msalConfig = {
    auth: {
        clientId: process.env.REACT_APP_CLIENT_ID!,
        authority: process.env.REACT_APP_AUTHORITY, // This is a URL (e.g. https://login.microsoftonline.com/{your tenant ID})
        redirectUri: process.env.REACT_APP_REDIRECT_URL,
    },
    cache: {
        cacheLocation: "sessionStorage",
        storeAuthStateInCookie: false,
    }
};

Relevant Code Snippets

-

Reproduction Steps

Navigate to browser and open the application
Enter email

Image

Then click Next and you'll be redirected to

Image

Expected Behavior

We should be redirected to the url, which is set in the app registration

Identity Provider

Entra ID (formerly Azure AD) / MSA

Browsers Affected (Select all that apply)

Chrome

Regression

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Awaiting response from the MSAL.js teambug-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