// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Security.Claims;
using Microsoft.AspNetCore.Http;
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
{
///
/// This Context can be used to be informed when an 'AuthorizationCode' is redeemed for tokens at the token endpoint.
///
public class TokenResponseReceivedContext : RemoteAuthenticationContext
{
///
/// Creates a
///
public TokenResponseReceivedContext(HttpContext context, AuthenticationScheme scheme, OpenIdConnectOptions options, ClaimsPrincipal user, AuthenticationProperties properties)
: base(context, scheme, options, properties)
=> Principal = user;
public OpenIdConnectMessage ProtocolMessage { get; set; }
///
/// Gets or sets the that contains the tokens received after redeeming the code at the token endpoint.
///
public OpenIdConnectMessage TokenEndpointResponse { get; set; }
}
}