Issue: ClientAuthError: endpoints_resolution_error during ADB2C Login Process with Proxy Authentication #7144
Closed
1 of 2 tasks
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
Needs: Author Feedback
Awaiting response from issue author
no-issue-activity
Issue author has not responded in 5 days
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
2.11.2
Wrapper Library
Not Applicable
Wrapper Library Version
None
Public or Confidential Client?
Public
Description
I am encountering a ClientAuthError during the ADB2C login process in my Electron application when Proxy authentication is enabled. The error message indicates that the endpoints could not be resolved.
After passing the "authorityMetadata" object manually (using JSON.stringify), the endpoints_resolution_error disappeared, but I encountered another error:
Failed to load loginWithADB2C window: Error: (-111) loading Failed to load loginWithADB2C window: Error: (-111) loading 'https://speechid.b2clogin.com/.../authorize?...'
If I open the same link in the browser, it shows the login window correctly.
This issue only occurs when Proxy authentication is enabled. When Proxy authentication is disabled, the application works correctly.
I also tried adding a custom network client with hardcoded proxy values but still experienced the same error.
Error Message
[2024-05-29 15:47:37.405] [error] (Login) ClientAuthError: endpoints_resolution_error: Error: could not resolve endpoints. Please check network and try again. Detail: ClientAuthError: openid_config_error: Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints. Attempted to retrieve endpoints from: https://domain/domain/b2c_1a_******signin/v2.0/.well-known/openid-configuration
at ClientAuthError.AuthError [as constructor] (http://localhost:3001/main_window/index.js:560:24)
at new ClientAuthError (http://localhost:3001/main_window/index.js:796:28)
at Function.ClientAuthError.createEndpointDiscoveryIncompleteError (http://localhost:3001/main_window/index.js:833:16)
at Function. (http://localhost:3001/main_window/index.js:6245:47)
at step (http://localhost:3001/main_window/index.js:213:23)
at Object.throw (http://localhost:300
MSAL Logs
ClientAuthError: endpoints_resolution_error: Error: could not resolve endpoints. Please check network and try again. Detail: ClientAuthError: openid_config_error: Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints. Attempted to retrieve endpoints from: https://domain/domain/b2c_1a_******signin/v2.0/.well-known/openid-configuration
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Expected Behavior
The MSAL login window should be shown, even when Proxy authentication is enabled.
Identity Provider
Azure B2C Custom Policy
Browsers Affected (Select all that apply)
Other
Regression
2.11.2
Source
External (Customer)
The text was updated successfully, but these errors were encountered: