Skip to content

Commit

Permalink
Add handling of integrated_windows_auth_not_supported_managed_user (#503
Browse files Browse the repository at this point in the history
)

Integrated Windows Auth is not supported for managed users. This needs
to be handled to prevent issues when a Windows user is not a federated
user.
  • Loading branch information
NoDataAvailable authored Jul 24, 2024
1 parent 62788bf commit 696b78e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 696b78e

Please sign in to comment.