Library version used
4.73.1
.NET version
.NET 8.0.18
Scenario
ConfidentialClient - service to service (AcquireTokenForClient)
Is this a new or an existing app?
The app is in production, and I have upgraded to a new version of MSAL
Issue description and reproduction steps
If WithAuthority is called with tenantA and WithTenantIdFromAuthority is called with tenantB, the token request goes to <authorityHost>/<tenantA>
Relevant code snippets
see https://github.com/Azure/azure-sdk-for-net/issues/51401
Expected behavior
If WithAuthority is called with tenantA and WithTenantIdFromAuthority is called with tenantB, the token request goes to <authorityHost>/<tenantB>
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
4.61.3 (not verified if any higher versions also work)
Solution and workarounds
n/a