Skip to content

Commit eb1d6ae

Browse files
author
John Luo
authored
Update exception handling condition in WsFederationHandler (#24886)
Fixes
1 parent fae4a56 commit eb1d6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Security/Authentication/WsFederation/src/WsFederationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ protected override async Task<HandleRequestResult> HandleRemoteAuthenticateAsync
295295
Logger.ExceptionProcessingMessage(exception);
296296

297297
// 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)))
298+
if (Options.RefreshOnIssuerKeyNotFound && exception is SecurityTokenSignatureKeyNotFoundException)
299299
{
300300
Options.ConfigurationManager.RequestRefresh();
301301
}

0 commit comments

Comments
 (0)