25 lines
848 B
C#
25 lines
848 B
C#
// 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;
|
|
|
|
namespace Microsoft.AspNetCore.Authentication
|
|
{
|
|
/// <summary>
|
|
/// Provides context information to handler providers.
|
|
/// </summary>
|
|
public class TicketReceivedContext : RemoteAuthenticationContext<RemoteAuthenticationOptions>
|
|
{
|
|
public TicketReceivedContext(
|
|
HttpContext context,
|
|
AuthenticationScheme scheme,
|
|
RemoteAuthenticationOptions options,
|
|
AuthenticationTicket ticket)
|
|
: base(context, scheme, options, ticket?.Properties)
|
|
=> Principal = ticket?.Principal;
|
|
|
|
public string ReturnUri { get; set; }
|
|
}
|
|
}
|