Skip to content

IMDS probe requests should throw CredentialUnavailableException for any response that is not valid json #5846

@christothes

Description

@christothes

Currently we handle responses from IMDS under certain conditions by throwing CredentialUnavailableException. The purpose of this exception is to indicate to chained credentials, such as DefaultAzureCredential, that the credential selection process should not terminate and continue attempting credentials along the chain.

Please validate in our managed identity probe request implementation that any request, either successful or unsuccessful, containing content other than valid json should result in throwing CredentialUnavailableException.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azure.IdentityClientThis issue points to a problem in the data-plane of the library.

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions