I cant use more than one configuration for MSAL #7421
Labels
b2c
Related to Azure B2C library-specific issues
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
msal-angular
Related to @azure/msal-angular package
msal-browser
Related to msal-browser package
Needs: Attention 👋
Awaiting response from the MSAL.js team
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
3.24.0
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
3.0.23
Public or Confidential Client?
Public
Description
I have two different configurations in my environment file, from diferents tenants
On a specific page, the user chooses whether to access one tenant or another
My problem is that, in my app.module, I inject the configuration for msal this way
But there, I have to choose between one configuration and another.
And same way in the function for MSAL interceptor
And now, in another page, to use the other configuration, I'm trying to change the authService instance this way:
But It doesnt work
Could you help me, please?
Thank you very much
Error Message
No response
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Expected Behavior
should dynamically change settings for msal
Identity Provider
Azure B2C Custom Policy
Browsers Affected (Select all that apply)
Chrome
Regression
No response
The text was updated successfully, but these errors were encountered: