AgentClaims.CreateIdentity(String, Boolean, String) 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.
Creates an ingress Agent ClaimsIdentity.
public static System.Security.Claims.ClaimsIdentity CreateIdentity(string audience, bool anonymous = false, string appId = default);
static member CreateIdentity : string * bool * string -> System.Security.Claims.ClaimsIdentity
Public Shared Function CreateIdentity (audience As String, Optional anonymous As Boolean = false, Optional appId As String = Nothing) As ClaimsIdentity
Parameters
- audience
- String
The aud of the claim. Typically the ClientId of the Agent.
- anonymous
- Boolean
- appId
- String
The appId of the sender. Not supplying the appId will work correctly against Azure Bot Service, but not to another Agent.