You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Initial plan
* Implement claims challenge error for AzureCliCredential get_token and get_token_info methods
Co-authored-by: xiangyan99 <[email protected]>
* Refine claims challenge handling to ignore whitespace-only claims and add comprehensive tests
Co-authored-by: xiangyan99 <[email protected]>
* Fix MyPy errors in AzureCliCredential claims challenge handling
Co-authored-by: xiangyan99 <[email protected]>
* Fix pylint line-too-long and trailing-whitespace errors in AzureCliCredential
Co-authored-by: xiangyan99 <[email protected]>
* Apply black formatting to AzureCliCredential files
Co-authored-by: xiangyan99 <[email protected]>
* black
* Update error message format and docstrings for claims challenge handling
- Change error message from "Fail to get token, please run" to "Failed to get token. Run"
- Update docstrings to clarify error conditions as requested in code review
- Update test expectations to match new error message format
Co-authored-by: scottaddie <[email protected]>
* black
* Include scopes in az login command for claims challenge error messages
Co-authored-by: weikanglim <[email protected]>
* Refactor claims challenge logic to _get_token_base and add tenant support
- Move claims challenge logic from get_token and get_token_info methods to _get_token_base method to eliminate code duplication
- Pass claims through TokenRequestOptions instead of checking directly in individual methods
- Add tenant_id support in error messages when provided in options
- Update error message format to include tenant: "az login --claims-challenge {claims} [--tenant {tenant}] [--scope {scope}]"
- Add comprehensive tests for tenant functionality in both sync and async versions
- Maintains backward compatibility while providing more complete actionable commands
Co-authored-by: pvaneck <[email protected]>
* Added MFA support for developer credentials.
* Minor refactor and test updates
Signed-off-by: Paul Van Eck <[email protected]>
* Update error messages
Signed-off-by: Paul Van Eck <[email protected]>
---------
Signed-off-by: Paul Van Eck <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: xiangyan99 <[email protected]>
Co-authored-by: scottaddie <[email protected]>
Co-authored-by: weikanglim <[email protected]>
Co-authored-by: pvaneck <[email protected]>
Co-authored-by: Paul Van Eck <[email protected]>
Copy file name to clipboardExpand all lines: sdk/identity/azure-identity/CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
### Features Added
6
6
7
+
-`AzureDeveloperCliCredential` now supports `claims` in `get_token` and `get_token_info`. ([#42568](https://github.com/Azure/azure-sdk-for-python/pull/42568))
8
+
7
9
### Breaking Changes
8
10
9
11
### Bugs Fixed
@@ -23,6 +25,7 @@
23
25
24
26
-`ManagedIdentityCredential` now retries IMDS 410 status responses for at least 70 seconds total duration as required by [Azure IMDS documentation](https://learn.microsoft.com/azure/virtual-machines/instance-metadata-service?tabs=windows#errors-and-debugging). ([#42330](https://github.com/Azure/azure-sdk-for-python/pull/42330))
25
27
- Improved `DefaultAzureCredential` diagnostics when `WorkloadIdentityCredential` initialization fails. If DAC fails to find a successful credential in the chain, the reason `WorkloadIdentityCredential` failed will be included in the error message. ([#42346](https://github.com/Azure/azure-sdk-for-python/pull/42346))
28
+
-`AzureCliCredential` and `AzurePowerShellCredential` now raise `ClientAuthenticationError` when `claims` are provided to `get_token` or `get_token_info`, as these credentials do not support claims challenges. The error message includes instructions for handling claims authentication scenarios. ([#42568](https://github.com/Azure/azure-sdk-for-python/pull/42568))
0 commit comments