// Copyright (c) Microsoft Open Technologies, Inc. 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;
namespace Microsoft.AspNet.Identity
{
public class ClaimsIdentityOptions
{
public static readonly string DefaultSecurityStampClaimType = "AspNet.Identity.SecurityStamp";
public static readonly string DefaultAuthenticationType = typeof(ClaimsIdentityOptions).Namespace + ".Application";
public static readonly string DefaultExternalLoginAuthenticationType = typeof(ClaimsIdentityOptions).Namespace + ".ExternalLogin";
public static readonly string DefaultTwoFactorRememberMeAuthenticationType = typeof(ClaimsIdentityOptions).Namespace + ".TwoFactorRememberMe";
public static readonly string DefaultTwoFactorUserIdAuthenticationType = typeof(ClaimsIdentityOptions).Namespace + ".TwoFactorUserId";
///
/// Claim type used for role claims
///
public string RoleClaimType { get; set; } = ClaimTypes.Role;
///
/// Claim type used for the user name
///
public string UserNameClaimType { get; set; } = ClaimTypes.Name;
///
/// Claim type used for the user id
///
public string UserIdClaimType { get; set; } = ClaimTypes.NameIdentifier;
///
/// Claim type used for the user security stamp
///
public string SecurityStampClaimType { get; set; } = DefaultSecurityStampClaimType;
}
}