Table of Contents

Class DirectoryClaimTypes

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Claim types carrying the external-directory object id (Microsoft Entra ID's oid), in both the raw JWT form and the .NET-mapped form.

public static class DirectoryClaimTypes
Inheritance
DirectoryClaimTypes
Inherited Members

Fields

ObjectId

The raw oid claim, present when inbound claim mapping is disabled.

public const string ObjectId = "oid"

Field Value

string

ObjectIdentifier

The .NET-mapped object-identifier claim (the default with Microsoft.Identity.Web).

public const string ObjectIdentifier = "http://schemas.microsoft.com/identity/claims/objectidentifier"

Field Value

string

Methods

GetDirectoryId(ClaimsPrincipal)

The principal's directory object id, from either claim form; null when the identity provider did not issue one.

public static string GetDirectoryId(this ClaimsPrincipal principal)

Parameters

principal ClaimsPrincipal

Returns

string