AgentClaims.GetOutgoingAppId(ClaimsIdentity) Method

Definition

Gets the outgoing AppId from an incoming identity.

public static string GetOutgoingAppId(this System.Security.Claims.ClaimsIdentity identity);
static member GetOutgoingAppId : System.Security.Claims.ClaimsIdentity -> string
<Extension()>
Public Function GetOutgoingAppId (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