Freigeben über


AgentClaims.GetOutgoingAppId(ClaimsIdentity) Method

Definition

Gets the outgoing AppId from a claims list.

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

Parameters

identity
ClaimsIdentity

The Agent 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 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