Skip to content

Commit 53c705d

Browse files
authored
[Identity] Adjustments for release (#42394)
- Updated Changelog + version - Updated workload identity TSG link - Updated vscode credential docstring Signed-off-by: Paul Van Eck <[email protected]>
1 parent ddfda00 commit 53c705d

File tree

8 files changed

+14
-10
lines changed

8 files changed

+14
-10
lines changed

sdk/identity/azure-identity/CHANGELOG.md

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

3-
## 1.24.0b2 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
3+
## 1.24.0 (2025-08-07)
84

95
### Bugs Fixed
106

@@ -20,7 +16,7 @@
2016
### Features Added
2117

2218
- Expanded the set of acceptable values for environment variable `AZURE_TOKEN_CREDENTIALS` to allow for selection of a specific credential in the `DefaultAzureCredential` chain. At runtime, only the specified credential will be used when acquiring tokens with `DefaultAzureCredential`. For example, setting `AZURE_TOKEN_CREDENTIALS=WorkloadIdentityCredential` will make `DefaultAzureCredential` use only `WorkloadIdentityCredential`.
23-
- Valid values are `EnvironmentCredential`, `WorkloadIdentityCredential`, `ManagedIdentityCredential`, `AzureCliCredential`, `AzurePowershellCredential`, `AzureDeveloperCliCredential`, and `InteractiveBrowserCredential`. ([#41709](https://github.com/Azure/azure-sdk-for-python/pull/41709))
19+
- Valid values are `EnvironmentCredential`, `WorkloadIdentityCredential`, `ManagedIdentityCredential`, `VisualStudioCodeCredential`, `AzureCliCredential`, `AzurePowershellCredential`, `AzureDeveloperCliCredential`, and `InteractiveBrowserCredential`. ([#41709](https://github.com/Azure/azure-sdk-for-python/pull/41709))
2420
- Re-enabled `VisualStudioCodeCredential` - Previously deprecated `VisualStudioCodeCredential` has been re-implemented to work with the VS Code Azure Resources extension instead of the deprecated Azure Account extension. This requires the `azure-identity-broker` package to be installed for authentication. ([#41822](https://github.com/Azure/azure-sdk-for-python/pull/41822))
2521
- `VisualStudioCodeCredential` is now included in the `DefaultAzureCredential` token chain by default.
2622
- `DefaultAzureCredential` now supports authentication with the currently signed-in Windows account, provided the `azure-identity-broker` package is installed. This auth mechanism is added at the end of the `DefaultAzureCredential` credential chain. ([#40335](https://github.com/Azure/azure-sdk-for-python/pull/40335))

sdk/identity/azure-identity/azure/identity/_credentials/vscode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ def _validate_auth_record_json(data: dict) -> None:
129129
class VisualStudioCodeCredential:
130130
"""Authenticates as the Azure user signed in to Visual Studio Code via the 'Azure Resources' extension.
131131
132+
This currently only works in Windows/WSL environments and requires the 'azure-identity-broker'
133+
package to be installed.
134+
132135
:keyword str tenant_id: A Microsoft Entra tenant ID. Defaults to the tenant specified in the authentication
133136
record file used by the Azure Resources extension.
134137
:keyword List[str] additionally_allowed_tenants: Specifies tenants in addition to the specified "tenant_id"
@@ -161,6 +164,7 @@ def __init__(self, **kwargs: Any) -> None:
161164
authentication_record=authentication_record,
162165
parent_window_handle=msal.PublicClientApplication.CONSOLE_WINDOW_HANDLE,
163166
use_default_broker_account=True,
167+
disable_interactive_fallback=True,
164168
**kwargs,
165169
)
166170
except ValueError as ex:

sdk/identity/azure-identity/azure/identity/_credentials/workload_identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
WORKLOAD_CONFIG_ERROR = (
1515
"WorkloadIdentityCredential authentication unavailable. The workload options are not fully "
1616
"configured. See the troubleshooting guide for more information: "
17-
"https://aka.ms/azsdk/python/identity/workloadidentitycredential"
17+
"https://aka.ms/azsdk/python/identity/workloadidentitycredential/troubleshoot"
1818
)
1919

2020

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def process_credential_exclusions(credential_config: dict, exclude_flags: dict,
161161

162162
if token_credentials_env == "dev":
163163
# In dev mode, use only developer credentials
164-
dev_credentials = {"cli", "developer_cli", "powershell", "shared_token_cache"}
164+
dev_credentials = {"visual_studio_code", "cli", "developer_cli", "powershell", "shared_token_cache"}
165165
for cred_key in credential_config:
166166
exclude_flags[cred_key] = cred_key not in dev_credentials
167167
elif token_credentials_env == "prod":

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.24.0b2"
5+
VERSION = "1.24.0"

sdk/identity/azure-identity/azure/identity/aio/_credentials/default.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def __init__(self, **kwargs: Any) -> None: # pylint: disable=too-many-statement
164164
},
165165
"visual_studio_code": {
166166
"exclude_param": "exclude_visual_studio_code_credential",
167+
"env_name": "visualstudiocodecredential",
167168
"default_exclude": False,
168169
},
169170
"cli": {

sdk/identity/azure-identity/azure/identity/aio/_credentials/vscode.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
class VisualStudioCodeCredential(AsyncContextManager):
1414
"""Authenticates as the Azure user signed in to Visual Studio Code via the 'Azure Resources' extension.
1515
16+
This currently only works in Windows/WSL environments and requires the 'azure-identity-broker'
17+
package to be installed.
18+
1619
:keyword str tenant_id: A Microsoft Entra tenant ID. Defaults to the tenant specified in the authentication
1720
record file used by the Azure Resources extension.
1821
:keyword List[str] additionally_allowed_tenants: Specifies tenants in addition to the specified "tenant_id"

sdk/identity/azure-identity/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity",
3939
keywords="azure, azure sdk",
4040
classifiers=[
41-
"Development Status :: 4 - Beta",
41+
"Development Status :: 5 - Production/Stable",
4242
"Programming Language :: Python",
4343
"Programming Language :: Python :: 3 :: Only",
4444
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)