40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Security.Claims;
|
|
using Microsoft.AspNet.Abstractions.Security;
|
|
using Microsoft.AspNet.HttpFeature.Security;
|
|
using Microsoft.AspNet.PipelineCore.Security;
|
|
using Microsoft.AspNet.Security.Infrastructure;
|
|
|
|
namespace Microsoft.AspNet.Security
|
|
{
|
|
/// <summary>
|
|
/// Contains user identity information as well as additional authentication state.
|
|
/// </summary>
|
|
public class AuthenticationTicket
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="AuthenticationTicket"/> class
|
|
/// </summary>
|
|
/// <param name="identity"></param>
|
|
/// <param name="properties"></param>
|
|
public AuthenticationTicket(ClaimsIdentity identity, AuthenticationProperties properties)
|
|
{
|
|
Identity = identity;
|
|
Properties = properties ?? new AuthenticationProperties();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the authenticated user identity.
|
|
/// </summary>
|
|
public ClaimsIdentity Identity { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Additional state values for the authentication session.
|
|
/// </summary>
|
|
public AuthenticationProperties Properties { get; private set; }
|
|
}
|
|
}
|