Class ClaimConstants
- Namespace
- NuvTools.Security.Models
- Assembly
- NuvTools.Security.dll
Provides constant values for commonly used claim type names in JWT and OIDC authentication.
public static class ClaimConstants
- Inheritance
-
ClaimConstants
- Inherited Members
Remarks
These constants represent standard claim names from OpenID Connect and JWT specifications, commonly used for extracting user identity information from tokens.
Fields
The email address of the user. Standard OIDC claim name.
public const string Email = "email"
Field Value
FamilyName
The family name (last name) of the user. Standard OIDC claim name.
public const string FamilyName = "family_name"
Field Value
GivenName
The given name (first name) of the user. Standard OIDC claim name.
public const string GivenName = "given_name"
Field Value
PreferredUsername
The preferred username for the user. Standard OIDC claim name.
public const string PreferredUsername = "preferred_username"
Field Value
Sub
The subject identifier - unique identifier for the user. Standard JWT claim name.
public const string Sub = "sub"
Field Value
UniqueName
The unique name of the user - often used in legacy authentication systems.
public const string UniqueName = "unique_name"
Field Value
Upn
User Principal Name - typically used in Microsoft Azure AD and Active Directory scenarios.
public const string Upn = "upn"