AgentClaims.GetAppId(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.
Retrieves the AppId from the given claims identity.
public static string GetAppId(System.Security.Claims.ClaimsIdentity claimsIdentity);
static member GetAppId : System.Security.Claims.ClaimsIdentity -> string
Public Shared Function GetAppId (claimsIdentity As ClaimsIdentity) As String
Parameters
- claimsIdentity
- ClaimsIdentity
The claims identity containing the token information.
Returns
The AppId as a string, or null if not found.
Remarks
For requests from the channel, the AppId is in the Audience claim of the JWT token. For the emulator, it is in the AppId claim. For unauthenticated requests, anonymous claimsIdentity is provided if auth is disabled.