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