34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
|
|
|
|
using System.Security.Claims;
|
|
|
|
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; }
|
|
}
|
|
}
|