Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 3.07 KB

troubleshooting-authentication-multi-tenant.md

File metadata and controls

25 lines (19 loc) · 3.07 KB
titletitleSuffixdescriptionms.datems.topicms.customauthorms.authorms.reviewer
Troubleshoot multi-tenant authentication
Azure SDK for Java
Provides an overview of how to troubleshoot multi-tenant authentication issues.
04/02/2025
conceptual
devx-track-java, devx-track-extended-java
KarlErickson
karler
jogiles

Troubleshoot multi-tenant authentication

This article provides guidance on dealing with issues encountered in a multi-tenant context.

When you use credentials in a multi-tenant context, you can optionally try/catch for ClientAuthenticationException. The following table shows the errors that this exception indicates, and methods of mitigation:

Error messageDescriptionMitigation
The current credential is not configured to acquire tokens for tenant <tenant-ID>The application must configure the credential to allow acquiring tokens from the requested tenant.Add the requested tenant ID to additionallyAllowedTenants on the credential builder, or add "*" to additionallyAllowedTenants to allow acquiring tokens for any tenant.

This exception was added as part of a breaking change to multi-tenant authentication in version 1.6.0. Users experiencing this error after upgrading can find information about the change and migration in BREAKING_CHANGES.md

Next steps

If the troubleshooting guidance in this article doesn't help to resolve issues when you use the Azure SDK for Java client libraries, we recommended that you file an issue in the Azure SDK for Java GitHub repository.

close