AgentClaims.IsPublicBotFrameworkClaim(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.
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.