diff --git a/src/Authentication/MsalIntegratedWindowsAuthTokenProvider.cs b/src/Authentication/MsalIntegratedWindowsAuthTokenProvider.cs index d2ce35f..8ac7917 100644 --- a/src/Authentication/MsalIntegratedWindowsAuthTokenProvider.cs +++ b/src/Authentication/MsalIntegratedWindowsAuthTokenProvider.cs @@ -45,7 +45,7 @@ public bool CanGetToken(TokenRequest tokenRequest) return result; } - catch (MsalClientException ex) when (ex.ErrorCode == MsalError.WsTrustEndpointNotFoundInMetadataDocument) + catch (MsalClientException ex) when (ex.ErrorCode is MsalError.WsTrustEndpointNotFoundInMetadataDocument or MsalError.IntegratedWindowsAuthNotSupportedForManagedUser) { logger.LogTrace(ex.Message); return null;