Skip to content

Commit

Permalink
Update exception handling condition in WsFederationHandler (#24886)
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
John Luo authored Aug 13, 2020
1 parent fae4a56 commit eb1d6ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ protected override async Task<HandleRequestResult> HandleRemoteAuthenticateAsync
Logger.ExceptionProcessingMessage(exception);

// Refresh the configuration for exceptions that may be caused by key rollovers. The user can also request a refresh in the notification.
if (Options.RefreshOnIssuerKeyNotFound && exception.GetType().Equals(typeof(SecurityTokenSignatureKeyNotFoundException)))
if (Options.RefreshOnIssuerKeyNotFound && exception is SecurityTokenSignatureKeyNotFoundException)
{
Options.ConfigurationManager.RequestRefresh();
}
Expand Down

0 comments on commit eb1d6ae

Please sign in to comment.