Skip to content

Commit e661db1

Browse files
authored
add validate_authority support (Azure#23835)
* add validate_authority support * Update CHANGELOG.md
1 parent 1306285 commit e661db1

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

sdk/identity/azure-identity/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# Release History
22

3-
## 1.9.1 (Unreleased)
3+
## 1.10.0b1 (2022-04-07)
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
7+
- Added `validate_authority` support for msal client ([#22625](https://github.com/Azure/azure-sdk-for-python/issues/22625))
128

139
## 1.9.0 (2022-04-05)
1410

sdk/identity/azure-identity/azure/identity/_internal/msal_credentials.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MsalCredential(object):
2727
def __init__(self, client_id, client_credential=None, **kwargs):
2828
# type: (str, Optional[Union[str, Dict]], **Any) -> None
2929
authority = kwargs.pop("authority", None)
30-
# self._validate_authority = kwargs.pop("validate_authority", True)
30+
self._validate_authority = kwargs.pop("validate_authority", True)
3131
self._authority = normalize_authority(authority) if authority else get_default_authority()
3232
self._regional_authority = os.environ.get(EnvironmentVariables.AZURE_REGIONAL_AUTHORITY_NAME)
3333
self._tenant_id = kwargs.pop("tenant_id", None) or "organizations"
@@ -73,7 +73,7 @@ def _get_app(self, **kwargs):
7373
azure_region=self._regional_authority,
7474
token_cache=self._cache,
7575
http_client=self._client,
76-
# validate_authority=self._validate_authority
76+
validate_authority=self._validate_authority
7777
)
7878

7979
return self._client_applications[tenant_id]

sdk/identity/azure-identity/azure/identity/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Copyright (c) Microsoft Corporation.
33
# Licensed under the MIT License.
44
# ------------------------------------
5-
VERSION = "1.9.1"
5+
VERSION = "1.10.0b1"

sdk/identity/azure-identity/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
author_email="[email protected]",
5353
url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity",
5454
classifiers=[
55-
"Development Status :: 5 - Production/Stable",
55+
"Development Status :: 4 - Beta",
5656
"Programming Language :: Python",
5757
"Programming Language :: Python :: 3 :: Only",
5858
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)