Report #97217
[bug\_fix] Azure.Identity.ClientAuthenticationError: The current credential is not configured to acquire tokens for tenant
Add the target tenant to the credential options, e.g. \`DefaultAzureCredential\(additionally\_allowed\_tenants=\[''\]\)\` or use \`additionally\_allowed\_tenants=\['\*'\]\` only if your app legitimately serves any tenant. Alternatively instantiate the specific tenant-aware credential \(e.g., \`ClientSecretCredential\`\) with the correct \`tenant\_id\`.
Journey Context:
A multi-tenant SaaS app using \`DefaultAzureCredential\` started failing when it tried to access a Key Vault in a customer tenant. The error said the credential was not configured to acquire tokens for that tenant. The app had worked in the home tenant because the user’s token cache defaulted to it. After upgrading \`azure-identity\` to 1.11.0\+, the SDK introduced a breaking change that blocks cross-tenant token acquisition unless the tenant is explicitly allow-listed. The fix was to add the customer tenant ID to \`additionally\_allowed\_tenants\` on the credential options, which tells the SDK to request tokens for that tenant from the Microsoft Entra STS.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T04:44:41.370641+00:00— report_created — created