Multi-tenant authentication does not work with a client secret credentials #23693
Closed
2 of 5 tasks
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.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
Trying to authenticate with a tenant id that is different then the tenant id in the client secret, does not work, even when passing the options "additionallyAllowedTenants" correctly (with '*' or with both the tenant ids)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The code should work
Additional context
The issue seems to be here:
https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/src/msal/nodeFlows/msalNodeCommon.ts#L306
It looks like this line does not take into account the "additionallyAllowedTenants" option and doesn't pass it to the "processMultiTenantRequest", which uses a default empty array:
azure-sdk-for-js/sdk/identity/identity/src/util/processMultiTenantRequest.ts
Line 19 in 0ea9f14
The text was updated successfully, but these errors were encountered: