You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
We are seeing MSAL exceptions after Microsoft.Identity.Client package upgrade and only in Gov clouds.
MSAL.Desktop.4.45.0.0.MsalClientException: ErrorCode: authority_override_regional Microsoft.Identity.Client.MsalClientException: You configured WithAuthority at the request level, and also WithAzureRegion. This is not supported when the environment changes from application to request. Use WithTenantId at the request level instead.
Tried below fix as per some posts but that also didnt work:
Library version used
4.45.0
.NET version
4.7.2
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
We are seeing MSAL exceptions after Microsoft.Identity.Client package upgrade and only in Gov clouds.
MSAL.Desktop.4.45.0.0.MsalClientException: ErrorCode: authority_override_regional Microsoft.Identity.Client.MsalClientException: You configured WithAuthority at the request level, and also WithAzureRegion. This is not supported when the environment changes from application to request. Use WithTenantId at the request level instead.
Tried below fix as per some posts but that also didnt work:
newAuthenticationTask = newAuthenticationContext.AcquireTokenForClient(scopes).WithAuthority(newAuthorityId, false).WithSendX5C(isManagedCert).ExecuteAsync();
As we looked and discussed there was a breaking change done in recent release which is causing this:
@MSAL team: Please look and fix this issue.
Relevant code snippets
No response
Expected behavior
No response
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
4.45.0
Solution and workarounds
No response
The text was updated successfully, but these errors were encountered: