We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fae4a56 commit eb1d6aeCopy full SHA for eb1d6ae
src/Security/Authentication/WsFederation/src/WsFederationHandler.cs
@@ -295,7 +295,7 @@ protected override async Task<HandleRequestResult> HandleRemoteAuthenticateAsync
295
Logger.ExceptionProcessingMessage(exception);
296
297
// Refresh the configuration for exceptions that may be caused by key rollovers. The user can also request a refresh in the notification.
298
- if (Options.RefreshOnIssuerKeyNotFound && exception.GetType().Equals(typeof(SecurityTokenSignatureKeyNotFoundException)))
+ if (Options.RefreshOnIssuerKeyNotFound && exception is SecurityTokenSignatureKeyNotFoundException)
299
{
300
Options.ConfigurationManager.RequestRefresh();
301
}
0 commit comments