Skip to content

ManagedIdentityClient(..., client_capabilities=["cp1"]).acquire_token_for_client(..., claims_challenge="...") - #791

Merged
Ray Luo (rayluo) merged 1 commit into
devfrom
at-to-refresh
Apr 3, 2025
Merged

Ray Luo (rayluo) merged 1 commit into
devfrom
at-to-refresh

Conversation

@rayluo

@rayluo Ray Luo (rayluo) commented Feb 12, 2025

Copy link
Copy Markdown
Contributor

This pull request adds the access_token_sha256_to_refresh parameter to the acquire_token_for_client method in the msal.ConfidentialClientApplication class.

This PR meets feature requirements and acceptance criteria.

This PR supports ManagedIdentityClient(..., client_capabilities=["cp1"]).acquire_token_for_client(..., claims_challenge="...").

Currently, the new behavior will be available for Service Fabric. Other Managed Identity v1 providers may pick up those new behaviors soon. After that happens, we will enable this behavior for more Managed Identity code paths.

@rayluo
Ray Luo (rayluo) force-pushed the at-to-refresh branch 3 times, most recently from 2e6dc04 to f05ae3c Compare March 2, 2025 00:13
@rayluo
Ray Luo (rayluo) force-pushed the at-to-refresh branch 2 times, most recently from 92ae1e3 to 05b1424 Compare March 19, 2025 23:14
@rayluo Ray Luo (rayluo) changed the title ConfidentialClientApplication(...).acquire_token_for_client(..., access_token_sha256_to_refresh=...) ManagedIdentityClient(..., client_capabilities=["cp1"]).acquire_token_for_client(..., claims_challenge="...") Mar 19, 2025
@rayluo
Ray Luo (rayluo) marked this pull request as ready for review March 19, 2025 23:25
@rayluo
Ray Luo (rayluo) requested a review from a team as a code owner March 19, 2025 23:25
Comment thread msal/managed_identity.py
Comment thread msal/managed_identity.py
Comment thread msal/managed_identity.py
Comment thread tests/test_mi.py
Comment thread tests/test_mi.py
Comment thread tests/test_mi.py
@rayluo
Ray Luo (rayluo) merged commit 2f9747f into dev Apr 3, 2025
@rayluo
Ray Luo (rayluo) deleted the at-to-refresh branch April 3, 2025 07:58
Comment thread msal/managed_identity.py
Comment thread msal/managed_identity.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants