JwtTokenValidation.GetAppIdFromClaims(IEnumerable<Claim>) 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 AppId from a claims list.
public static string GetAppIdFromClaims (System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> claims);
static member GetAppIdFromClaims : seq<System.Security.Claims.Claim> -> string
Public Shared Function GetAppIdFromClaims (claims As IEnumerable(Of Claim)) As String
Parameters
- claims
- IEnumerable<Claim>
A list of Claim instances.
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.