Table of Contents

Class ClaimsPrincipalExtensions

Namespace
NuvTools.Security.AspNetCore.Entra
Assembly
NuvTools.Security.AspNetCore.Entra.dll

Reads the calling workload out of a principal the Entra workload scheme built.

public static class ClaimsPrincipalExtensions
Inheritance
ClaimsPrincipalExtensions
Inherited Members

Methods

GetEntraWorkloadApplicationId(ClaimsPrincipal)

The application ID of the calling workload — appid on a v1 token, azp on a v2 one — or null when the principal carries neither.

public static string? GetEntraWorkloadApplicationId(this ClaimsPrincipal principal)

Parameters

principal ClaimsPrincipal

Returns

string