AgentClaims.GetOutgoingAppIdClaim(ClaimsIdentity) Method

Definition

Gets the outgoing AppId from an incoming identity.

public static string GetOutgoingAppIdClaim(System.Security.Claims.ClaimsIdentity identity);
static member GetOutgoingAppIdClaim : System.Security.Claims.ClaimsIdentity -> string
Public Function GetOutgoingAppIdClaim (identity As ClaimsIdentity) As String

Parameters

identity
ClaimsIdentity

The incoming identity

Returns

The value of the appId claim if found (null if it can't find a suitable claim).

Remarks

In v1 tokens the AppId is in the AppIdClaim claim. In v2 tokens the AppId is in the azp AuthorizedParty claim. If the VersionClaim is not present, this method will attempt to obtain the attribute from the AppIdClaim or if present.

Applies to