From a79a0360c18df26f34d96521ff72067f9f2666b7 Mon Sep 17 00:00:00 2001 From: Troy Dai Date: Fri, 29 Jul 2016 15:06:37 -0700 Subject: [PATCH] Update OpenIdConnectHandler --- .../OpenIdConnectHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNetCore.Authentication.OpenIdConnect/OpenIdConnectHandler.cs b/src/Microsoft.AspNetCore.Authentication.OpenIdConnect/OpenIdConnectHandler.cs index 80e8c693be..7521ef39e8 100644 --- a/src/Microsoft.AspNetCore.Authentication.OpenIdConnect/OpenIdConnectHandler.cs +++ b/src/Microsoft.AspNetCore.Authentication.OpenIdConnect/OpenIdConnectHandler.cs @@ -147,7 +147,7 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect } /// - /// Sign out the Relying Party from the OpenID provider + /// Redirect user to the identity provider for sign out /// /// A task executing the sign out procedure protected override async Task HandleSignOutAsync(SignOutContext context) @@ -263,7 +263,7 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect protected virtual Task HandleSignOutCallbackAsync() { StringValues protectedState; - if (Request.Query.TryGetValue("State", out protectedState)) + if (Request.Query.TryGetValue(OpenIdConnectParameterNames.State, out protectedState)) { var properties = Options.StateDataFormat.Unprotect(protectedState); if (!string.IsNullOrEmpty(properties?.RedirectUri))