Skip to content

MSAL will use env var MSAL_FORCE_REGION by default #756

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

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Conversation

rayluo
Copy link
Collaborator

@rayluo rayluo commented Oct 11, 2024

This pull request updates the msal/application.py file to include a new feature that allows MSAL to use the MSAL_FORCE_REGION environment variable by default. This closes #748

Docs are also updated and staged here.

@rayluo rayluo requested a review from a team as a code owner October 11, 2024 06:50
@rayluo rayluo force-pushed the msal-force-region branch from c834d8b to 02dd5b7 Compare October 11, 2024 06:59
2. ``azure_region="some_region"`` - meaning the specified region is used.
3. ``azure_region=True`` - meaning
MSAL will try to auto-detect the region. This is not recommended.
4. ``azure_region=False`` - meaning MSAL will use no region.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not as per spec. Let's please keep it as per spec.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per offline discussion, an alias DISABLE_MSAL_FORCE_REFRESH is now added here.

Copy link
Member

@bgavrilMS bgavrilMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but please let's use DisableMsalForceRegion string to be consistent with the other MSALs.

Add an alias DISABLE_MSAL_FORCE_REFRESH for False
@rayluo rayluo force-pushed the msal-force-region branch from 65243bf to 33dbe3e Compare October 11, 2024 22:28
@rayluo rayluo merged commit 33dbe3e into dev Oct 11, 2024
11 of 12 checks passed
@rayluo rayluo deleted the msal-force-region branch October 11, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Region auto enable on env variable
2 participants