Skip to content

Commit f7ec1e4

Browse files
committed
1 parent 177bf28 commit f7ec1e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

msal/application.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init__(
119119
verify=True, proxies=None, timeout=None,
120120
client_claims=None, app_name=None, app_version=None,
121121
client_capabilities=None,
122-
region=None, # Note: We choose to add this param in this base class,
122+
azure_region=None, # Note: We choose to add this param in this base class,
123123
# despite it is currently only needed by ConfidentialClientApplication.
124124
# This way, it holds the same positional param place for PCA,
125125
# when we would eventually want to add this feature to PCA in future.
@@ -229,7 +229,7 @@ def __init__(
229229
`claims parameter <https://openid.net/specs/openid-connect-core-1_0-final.html#ClaimsParameter`_
230230
which you will later provide via one of the acquire-token request.
231231
232-
:param str region:
232+
:param str azure_region:
233233
Added since MSAL Python 1.12.0.
234234
235235
As of 2021 May, regional service is only available for
@@ -301,7 +301,7 @@ def __init__(
301301
raise
302302

303303
self.token_cache = token_cache or TokenCache()
304-
self._region_configured = region
304+
self._region_configured = azure_region
305305
self._region_detected = None
306306
self.client, self._regional_client = self._build_client(
307307
client_credential, self.authority)

tests/test_e2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def test_acquire_token_for_client_should_hit_regional_endpoint(self):
758758
#validate_authority=False,
759759

760760
authority="https://login.microsoftonline.com/microsoft.onmicrosoft.com",
761-
region=self.region, # Explicitly use this region, regardless of detection
761+
azure_region=self.region, # Explicitly use this region, regardless of detection
762762
timeout=2, # Short timeout makes this test case responsive on non-VM
763763
)
764764
scopes = ["https://graph.microsoft.com/.default"]

0 commit comments

Comments
 (0)