AgentClaims.IsGovBotFrameworkClaim(ClaimsIdentity) Method

Definition

Determines whether the specified incoming identity represents a government Bot Framework claim.

public static bool IsGovBotFrameworkClaim(System.Security.Claims.ClaimsIdentity identity);
static member IsGovBotFrameworkClaim : System.Security.Claims.ClaimsIdentity -> bool
Public Function IsGovBotFrameworkClaim (identity As ClaimsIdentity) As Boolean

Parameters

identity
ClaimsIdentity

The incoming identity to evaluate. Cannot be null.

Returns

true if the claims identity corresponds to a government Bot Framework claim; otherwise, false.

Remarks

This method checks the audience claim within the provided incoming identity and compares it against the expected government Bot Framework token issuer. Use this method to distinguish government Bot Framework tokens from standard tokens when handling authentication.

Applies to