From 5640a4fd2a3f60953f4ead2341171cb4259de044 Mon Sep 17 00:00:00 2001 From: mijpeterson <110266616+mijpeterson@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:10:38 -0700 Subject: [PATCH] Adjusting IWA warning message (#406) * Removing part of a warning that no longer applies. * Modifying verbosity of 2fa log message. --- src/MSALWrapper/AuthFlow/IntegratedWindowsAuthentication.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/MSALWrapper/AuthFlow/IntegratedWindowsAuthentication.cs b/src/MSALWrapper/AuthFlow/IntegratedWindowsAuthentication.cs index b0764c6c..5bde2e47 100644 --- a/src/MSALWrapper/AuthFlow/IntegratedWindowsAuthentication.cs +++ b/src/MSALWrapper/AuthFlow/IntegratedWindowsAuthentication.cs @@ -66,8 +66,7 @@ protected override async Task GetTokenInnerAsync() ex.Classification == UiRequiredExceptionClassification.BasicAction && ex.Message.StartsWith("AADSTS50076", StringComparison.OrdinalIgnoreCase)) { - this.logger.LogWarning("Warning: IWA failed, 2FA is required."); - this.logger.LogWarning("Warning: IWA can pass this requirement if you log into Windows with either a Smart Card or Windows Hello."); + this.logger.LogDebug("IWA failed, 2FA is required."); throw; } catch (MsalClientException ex) when (ex.Message.Contains("WS-Trust endpoint not found"))