AgentClaims.IsPublicBotFrameworkClaim(ClaimsIdentity) Method

Definition

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

public static bool IsPublicBotFrameworkClaim(System.Security.Claims.ClaimsIdentity identity);
static member IsPublicBotFrameworkClaim : System.Security.Claims.ClaimsIdentity -> bool
Public Function IsPublicBotFrameworkClaim (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 public Bot Framework claim; otherwise, false.

Remarks

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

Applies to