AgentClaims.IsBotFrameworkClaim(ClaimsIdentity) Method

Definition

Determines whether the specified incoming identity contains a valid Bot Framework claim.

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

Parameters

identity
ClaimsIdentity

The incoming identity to evaluate for Bot Framework claims. This should represent the user's claims in the context of the Bot Framework.

Returns

true if the incoming identity contains a valid Bot Framework claim; otherwise, false.

Remarks

This method checks for both public and government Bot Framework claims to ascertain the validity of the incoming identity.

Applies to