Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sdk/identity/azure-identity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### Other Changes

- Added `RequestIdPolicy` to the default pipeline policies to ensure a unique `x-ms-client-request-id` header is sent with each request. ([#46070](https://github.com/Azure/azure-sdk-for-python/pull/46070))

## 1.25.3 (2026-03-12)

### Bugs Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
HeadersPolicy,
NetworkTraceLoggingPolicy,
ProxyPolicy,
RequestIdPolicy,
RetryPolicy,
UserAgentPolicy,
HttpLoggingPolicy,
Expand Down Expand Up @@ -38,6 +39,7 @@ def _get_config(**kwargs) -> Configuration:

def _get_policies(config, _per_retry_policies=None, **kwargs):
policies = [
RequestIdPolicy(**kwargs),
config.headers_policy,
config.user_agent_policy,
config.proxy_policy,
Expand Down
1 change: 1 addition & 0 deletions sdk/identity/azure-identity/tests/test_aad_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def send(request, **_):
assert actual.scheme == "https"
assert actual.netloc == expected_netloc
assert actual.path.startswith("/" + tenant_id)
assert "x-ms-client-request-id" in request.headers
return mock_response(json_payload={"token_type": "Bearer", "expires_in": 42, "access_token": "***"})

client = AadClient(tenant_id, "client id", transport=Mock(send=send), authority=authority)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ async def send(request, **_):
assert actual.scheme == "https"
assert actual.netloc == expected_netloc
assert actual.path.startswith("/" + tenant_id)
assert "x-ms-client-request-id" in request.headers
return mock_response(json_payload={"token_type": "Bearer", "expires_in": 42, "access_token": "***"})

client = AadClient(tenant_id, "client id", transport=Mock(send=send), authority=authority)
Expand Down
Loading