0
votes

I have a mobile Ionic+Angular application and a trick login logic: when a user types his email he can choose which environment should be used.

For example: [email protected]

Based on the ending we use this or that API url

My current task is to replace login with MSAL and the application owner wants to keep this trick login logic. Our DevOps team provided me already created clients and policies and doesn't allow to change anything on Azure side, therefore all the logic should be implemented on the app side (if it's even possible)

I need to have possibility changing MSAL_INSTANCE settings or to have several MSAL instances and switch em based on the selected env.

I tried to google but didn't find any solutions. Does anyone have any recommendation for this?