Update OpenIdConnectHandler

This commit is contained in:
Troy Dai 2016-07-29 15:06:37 -07:00
parent c5509fb594
commit a79a0360c1
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
}
/// <summary>
/// Sign out the Relying Party from the OpenID provider
/// Redirect user to the identity provider for sign out
/// </summary>
/// <returns>A task executing the sign out procedure</returns>
protected override async Task HandleSignOutAsync(SignOutContext context)
@ -263,7 +263,7 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
protected virtual Task<bool> 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))