Del via


AgentClaims.CreateIdentity(String, Boolean, String) Method

Definition

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.

Returns

Applies to