Can msal-react handle multiple PublicClientApplication with differents Id #6461
Labels
msal-browser
Related to msal-browser package
msal-react
Related to @azure/msal-react
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.38.2
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
1.5.11
Public or Confidential Client?
Public
Description
I would like to know if it possible to connect to multiple
PublicClientApplication
in the same app.My react app is calling 2 API that are developped by differents teams, with differents terraforms code repository and everything.
This is the code I had when working with a single API, and it was working as intended
I found some solutions that are saying I could simple create 2 instances and use the correct one depending on which API I call
But is there a way to make this solution works with
MsalProvider
andMsalAuthenticationTemplate
approach ?Or do I have to rebuild this with the multiple instance possibility ?
If it's not possible do you have another way to do it you could forward me to ?
MSAL Configuration
No response
Relevant Code Snippets
No response
Identity Provider
Azure AD / MSA
Source
External (Customer)
The text was updated successfully, but these errors were encountered: