CommunicationIdentityClient class

Azure İletişim Hizmetleri Kullanıcı Belirteci Yönetimi ile etkileşime yönelik istemci sınıfı.

Oluşturucular

CommunicationIdentityClient(string, CommunicationIdentityOptions)

CommunicationIdentity sınıfının yeni bir örneğini başlatır.

CommunicationIdentityClient(string, KeyCredential, CommunicationIdentityOptions)

Azure KeyCredential kullanarak CommunicationIdentity sınıfının yeni bir örneğini başlatır.

CommunicationIdentityClient(string, TokenCredential, CommunicationIdentityOptions)

TokenCredential kullanarak CommunicationIdentity sınıfının yeni bir örneğini başlatır.

Yöntemler

createUser(OperationOptions)

Tek bir kullanıcı oluşturur.

deleteUser(CommunicationUserIdentifier, OperationOptions)

Kullanıcı için iptal olayını tetikler ve tüm verilerini siler.

issueToken(CommunicationUserIdentifier, TokenScope[], OperationOptions)

Kapsamlı bir kullanıcı belirteci oluşturur.

revokeTokens(CommunicationUserIdentifier, Date, OperationOptions)

Bir kullanıcı için oluşturulan tüm verileri ve belirteçleri iptal eder.

Oluşturucu Ayrıntıları

CommunicationIdentityClient(string, CommunicationIdentityOptions)

CommunicationIdentity sınıfının yeni bir örneğini başlatır.

new CommunicationIdentityClient(connectionString: string, options?: CommunicationIdentityOptions)

Parametreler

connectionString

string

Azure İletişim Hizmeti kaynağına bağlanmak için bağlantı dizesi. Örnek: "endpoint=https://contoso.eastus.communications.azure.net/; accesskey=secret";

options
CommunicationIdentityOptions

Opsiyonel. HTTP işlem hattını yapılandırma seçenekleri.

CommunicationIdentityClient(string, KeyCredential, CommunicationIdentityOptions)

Azure KeyCredential kullanarak CommunicationIdentity sınıfının yeni bir örneğini başlatır.

new CommunicationIdentityClient(url: string, credential: KeyCredential, options?: CommunicationIdentityOptions)

Parametreler

url

string

Hizmetin uç noktası (ör. https://contoso.eastus.communications.azure.net).

credential
KeyCredential

Hizmete yönelik isteklerin kimliğini doğrulamak için kullanılan bir nesne. Kimlik bilgisi oluşturmak için AzureKeyCredential veya @azure/identity kullanın.

options
CommunicationIdentityOptions

Opsiyonel. HTTP işlem hattını yapılandırma seçenekleri.

CommunicationIdentityClient(string, TokenCredential, CommunicationIdentityOptions)

TokenCredential kullanarak CommunicationIdentity sınıfının yeni bir örneğini başlatır.

new CommunicationIdentityClient(url: string, credential: TokenCredential, options?: CommunicationIdentityOptions)

Parametreler

url

string

Hizmetin uç noktası (örn: https://contoso.eastus.communications.azure.net)

credential
TokenCredential

Hizmete yönelik isteklerin kimliğini doğrulamak için kullanılan TokenCredential.

options
CommunicationIdentityOptions

Opsiyonel. HTTP işlem hattını yapılandırma seçenekleri.

Yöntem Ayrıntıları

createUser(OperationOptions)

Tek bir kullanıcı oluşturur.

function createUser(options?: OperationOptions): Promise<CreateUserResponse>

Parametreler

options
OperationOptions

İstek için ek seçenekler.

Döndürülenler

deleteUser(CommunicationUserIdentifier, OperationOptions)

Kullanıcı için iptal olayını tetikler ve tüm verilerini siler.

function deleteUser(user: CommunicationUserIdentifier, options?: OperationOptions): Promise<{ _response: HttpResponse }>

Parametreler

user
CommunicationUserIdentifier

Silinen kullanıcı.

options
OperationOptions

İstek için ek seçenekler.

Döndürülenler

Promise<{ _response: HttpResponse }>

issueToken(CommunicationUserIdentifier, TokenScope[], OperationOptions)

Kapsamlı bir kullanıcı belirteci oluşturur.

function issueToken(user: CommunicationUserIdentifier, scopes: TokenScope[], options?: OperationOptions): Promise<IssueTokenResponse>

Parametreler

user
CommunicationUserIdentifier

Belirteçleri iptal edilen kullanıcı.

scopes

TokenScope[]

Belirteçte eklenecek kapsamlar.

options
OperationOptions

İstek için ek seçenekler.

Döndürülenler

revokeTokens(CommunicationUserIdentifier, Date, OperationOptions)

Bir kullanıcı için oluşturulan tüm verileri ve belirteçleri iptal eder.

function revokeTokens(user: CommunicationUserIdentifier, tokensValidFrom?: Date, options?: OperationOptions): Promise<{ _response: HttpResponse }>

Parametreler

user
CommunicationUserIdentifier

Belirteçleri iptal edilen kullanıcı.

tokensValidFrom

Date

Bu süreden önce verilen jetonlar iptal edilecektir.

options
OperationOptions

İstek için ek seçenekler.

Döndürülenler

Promise<{ _response: HttpResponse }>