ClaimsIdentityOptions Class

Definition

Options used to configure the claim types used for well known claims.

C#
public class ClaimsIdentityOptions
Inheritance
ClaimsIdentityOptions

Constructors

Properties

EmailClaimType

Gets or sets the ClaimType used for the user email claim. Defaults to Email.

RoleClaimType

Gets or sets the ClaimType used for a Role claim. Defaults to Role.

SecurityStampClaimType

Gets or sets the ClaimType used for the security stamp claim. Defaults to "AspNet.Identity.SecurityStamp".

UserIdClaimType

Gets or sets the ClaimType used for the user identifier claim. Defaults to NameIdentifier.

UserNameClaimType

Gets or sets the ClaimType used for the user name claim. Defaults to Name.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0