Skip to content

Detecting Regional Endpoint from env var - #425

Merged
Ray Luo (rayluo) merged 2 commits into
devfrom
region-env-var
Oct 28, 2021
Merged

Ray Luo (rayluo) merged 2 commits into
devfrom
region-env-var

Conversation

@rayluo

@rayluo Ray Luo (rayluo) commented Oct 22, 2021

Copy link
Copy Markdown
Contributor
  • This PR adds back the behavior of detecting region based on env var REGION_NAME. Both short name (as eastus) or long name style (as West Us 2) are supported.

  • This time, we also make sure the entire regional endpoint behavior requires opt-in (as reiterated by this internal design), by either

    ConfidentialClientApplication(..., azure_region='westus', ...)

    or

    ConfidentialClientApplication(..., azure_region=ConfidentialClientApplication.ATTEMPT_REGION_DISCOVERY, ...)

    The default behavior does not utilize regional endpoint.

    ConfidentialClientApplication(..., azure_region=None, ...)

    In other words, the re-introduction of reading REGION_NAME env var would not regress The REGION_NAME env var should be prefixed with MSAL_ #382.

@rayluo
Ray Luo (rayluo) merged commit 20eed4a into dev Oct 28, 2021
@rayluo
Ray Luo (rayluo) deleted the region-env-var branch October 28, 2021 17:53
@rayluo Ray Luo (rayluo) mentioned this pull request Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant