Skip to content

Commit 01327a7

Browse files
xiangyan99mccoyp
authored andcommitted
remove validate_authority (Azure#23625)
* remove validate_authority * Update sdk/identity/azure-identity/setup.py Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com> Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
1 parent c83cf50 commit 01327a7

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

sdk/identity/azure-identity/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Release History
22

3-
## 1.9.0b2 (Unreleased)
3+
## 1.9.0 (Unreleased)
44

55
### Features Added
66

77
### Breaking Changes
88

9+
- `validate_authority` support is not available in 1.9.0.
10+
911
### Bugs Fixed
1012

1113
- Added check on `content` from msal response ([#23483](https://github.com/Azure/azure-sdk-for-python/issues/23483))

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.0b2"
5+
VERSION = "1.9.0"

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="azpysdkhelp@microsoft.com",
5353
url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity",
5454
classifiers=[
55-
"Development Status :: 4 - Beta",
55+
"Development Status :: 5 - Production/Stable",
5656
"Programming Language :: Python",
5757
"Programming Language :: Python :: 3 :: Only",
5858
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)