AzureAD / microsoft-authentication-library-for-js

Microsoft Authentication Library (MSAL) for JS
http://aka.ms/aadv2
MIT License
3.64k stars 2.65k forks source link

Wildcard (*) not working in Firefox anymore #7275

Open muhamedkarajic opened 1 month ago

muhamedkarajic commented 1 month ago

Core Library

MSAL.js (@azure/msal-browser)

Core Library Version

3.21.0

Wrapper Library

MSAL Angular (@azure/msal-angular)

Wrapper Library Version

3.0.23

Public or Confidential Client?

Public

Description

After debugging this for some hours I believe the following happened. Somoene at the msal team now uses URL class of JavaScript for the URLs.

In order to reproduce this just do the following: new URL("https://*.somedomain.com/")

Now in Google Chrome that will work fine but somehow in Firefox its not supported.

Error Message

Uncaught TypeError: URL constructor: https://*.venios.de/ is not a valid URL.

MSAL Logs

No response

Network Trace (Preferrably Fiddler)

MSAL Configuration

I believe this is irrelevant.

Relevant Code Snippets

new URL("https://*.somedomain.com/")

Reproduction Steps

Explained it in the description already.

Expected Behavior

It should still support wildcards.

Identity Provider

Entra ID (formerly Azure AD) / MSA

Browsers Affected (Select all that apply)

Firefox

Regression

No response

Source

External (Customer)

muhamedkarajic commented 1 day ago

Anyone?