-
Notifications
You must be signed in to change notification settings - Fork 373
Closed
Description
Region auto-enable
- On creation of a ConfidentialClientApplication, MSAL shall detect env variable
MSAL_FORCE_REGION
, which will be set to a specific region (e.g.westus1
) - If this env variable is set, MSAL shall opt-in to ESTS-R with the value of this variable.
Disabling the behavior
If region is explicitly set in MSAL to the string "DisableMsalForceRegion`, then the above no longer applies
Conflicts with WithAzureRegion(xyz)
Use of the api WithRegion(xyz)
takes precedence over the env variable.
Acceptance tests
For all of the tests, assume env variable MSAL_FORCE_REGION=eastus
- No other config is used. ACTUAL region used: eastus
- App developer configures region "westus" in MSAL. ACTUAL region used: westus
- App developer configures region "DisableMsalForceRegion" in MSAL. ACTUAL region used: none
Alternatives
No response
yanrez