Update OpenIdConnectHandler
This commit is contained in:
parent
c5509fb594
commit
a79a0360c1
|
|
@ -147,7 +147,7 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sign out the Relying Party from the OpenID provider
|
/// Redirect user to the identity provider for sign out
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>A task executing the sign out procedure</returns>
|
/// <returns>A task executing the sign out procedure</returns>
|
||||||
protected override async Task HandleSignOutAsync(SignOutContext context)
|
protected override async Task HandleSignOutAsync(SignOutContext context)
|
||||||
|
|
@ -263,7 +263,7 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
|
||||||
protected virtual Task<bool> HandleSignOutCallbackAsync()
|
protected virtual Task<bool> HandleSignOutCallbackAsync()
|
||||||
{
|
{
|
||||||
StringValues protectedState;
|
StringValues protectedState;
|
||||||
if (Request.Query.TryGetValue("State", out protectedState))
|
if (Request.Query.TryGetValue(OpenIdConnectParameterNames.State, out protectedState))
|
||||||
{
|
{
|
||||||
var properties = Options.StateDataFormat.Unprotect(protectedState);
|
var properties = Options.StateDataFormat.Unprotect(protectedState);
|
||||||
if (!string.IsNullOrEmpty(properties?.RedirectUri))
|
if (!string.IsNullOrEmpty(properties?.RedirectUri))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue