WorkloadIdentityCredential missing in DefaultAzureCredential #35657
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
issue-addressed
The Azure SDK team member assisting with this issue believes it to be addressed and ready to close.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
According to the documentation WorkloadIdentityCredential is included on the Default Credential which is not.
To Reproduce
Steps to reproduce the behavior:
The following code fails to obtain a valid credential
And the following does
Expected behavior
I would expect that if the
exclude_workload_identity_credential
is not provided, Workload identity should work with Default Credential.Screenshots
Stacktrace upon failing:
Additional context
For anyone trying to setup Workload Identity with Azure pipelines, this setup with which I managed to perform login on an Azure Devops Task pipeline:
and on my mytemplategeneratorimage the following python code.
Although it seems they have recently implemented #32143 which would also work (but also is not included in the DefaultAzureCredential helper) but that is not yet released nor the documentation updated
The text was updated successfully, but these errors were encountered: