-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Region auto enable on env variable #4930
Comments
No. Today app developers must explicitly opt-in to ESTS-R by using the API This proposal is for MSAL to auto-detect an env var, eliminating the need for app developer to use |
This line shall be inserted into the very beginning of this feature description as a "Problem Statement" or a "WHY". :-)
Why do we need this special case? Wouldn't it be much more intuitive (and easier to implement) to do "if the env var MSAL_FORCE_REGION is absent or empty, then the above no longer applies"? |
Of course, if the env var is empty, the above no longer applies. However, the "DisableMsalForceRegion" gives the application an opt-out of this behavior in case things go wrong. App owner isn't always able to change env variables. Does this make sense? |
Oh, I see. I misunderstood it as However, with that new understanding, now I have a broader question. The introduce of a new env var seems complicated.
How about we consolidate into only one env var, preferably reusing the same "REGION_NAME" one, and adjust the behaviors as below?
|
Programatic use of We should not try to reuse REGION_NAME env variable, because that will force ESTS-R on apps who currently use ESTS, with possible unintended consequences (e.g. 3p can't use ESTS-R, some 1p who have strong reasons to not use ESTS-R etc.). REGION_NAME is set on azure functions. |
|
OK. One minor suggestion is to change the last |
Let's please leave it as is, because we already implemented it in Node and .NET. |
Region auto-enable
MSAL_FORCE_REGION
, which will be set to a specific region (e.g.westus1
)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
Alternatives
No response
The text was updated successfully, but these errors were encountered: