[FEATURE REQ] Support setAuthorityHost with CredentialBuilderBase #8626
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
feature-request
This issue requires a new behavior in the product in order be resolved.
Right now, it doesn't look like you can call setAuthorityHost with DefaultAzureCredentialBuilder:
https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity/src/main/java/com/azure/identity/DefaultAzureCredentialBuilder.java
Which implements CredentialBuilderBase
CredentialBuilderBase doesn't expose setAuthorityHost
https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity/src/main/java/com/azure/identity/CredentialBuilderBase.java
EnvironmentCredentialBuilder does expose setAuthorityHost
https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity/src/main/java/com/azure/identity/EnvironmentCredentialBuilder.java
I recommend implementing this at the CredentialBuilderBase level.
Because ManagedIdentityCredential and other credential classes need this as well
https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity/src/main/java/com/azure/identity/ManagedIdentityCredentialBuilder.java
The text was updated successfully, but these errors were encountered: