AgentClaims.IsExchangeableToken(JwtSecurityToken) Method

Definition

Determines if a token is exchangeable based on its claims. An exchangeable token is one that is not a user token and has an audience claim that contains the appId of the token.

public static bool IsExchangeableToken(System.IdentityModel.Tokens.Jwt.JwtSecurityToken jwtToken);
static member IsExchangeableToken : System.IdentityModel.Tokens.Jwt.JwtSecurityToken -> bool
Public Function IsExchangeableToken (jwtToken As JwtSecurityToken) As Boolean

Parameters

jwtToken
JwtSecurityToken

The JWT token to evaluate. Cannot be null.

Returns

True if the token is exchangeable; otherwise, false.

Remarks

This is intended for use with tokens issued by the Microsoft identity platform including Azure Bot Token Service.

Applies to