Skip to content

Commit

Permalink
Adjusting IWA warning message (#406)
Browse files Browse the repository at this point in the history
* Removing part of a warning that no longer applies.

* Modifying verbosity of 2fa log message.
  • Loading branch information
mijpeterson authored Sep 12, 2024
1 parent b8392a4 commit 5640a4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MSALWrapper/AuthFlow/IntegratedWindowsAuthentication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ protected override async Task<TokenResult> 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"))
Expand Down

0 comments on commit 5640a4f

Please sign in to comment.