AgentClaims.GetOutgoingAppId(ClaimsIdentity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.