Table of Contents

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

Email

The email address of the user. Standard OIDC claim name.

public const string Email = "email"

Field Value

string

FamilyName

The family name (last name) of the user. Standard OIDC claim name.

public const string FamilyName = "family_name"

Field Value

string

GivenName

The given name (first name) of the user. Standard OIDC claim name.

public const string GivenName = "given_name"

Field Value

string

PreferredUsername

The preferred username for the user. Standard OIDC claim name.

public const string PreferredUsername = "preferred_username"

Field Value

string

Sub

The subject identifier - unique identifier for the user. Standard JWT claim name.

public const string Sub = "sub"

Field Value

string

UniqueName

The unique name of the user - often used in legacy authentication systems.

public const string UniqueName = "unique_name"

Field Value

string

Upn

User Principal Name - typically used in Microsoft Azure AD and Active Directory scenarios.

public const string Upn = "upn"

Field Value

string