Język

PasswordServiceClientCredentialFactory Klasa

Definicja

Prosta implementacja interfejsu ServiceClientCredentialsFactory .

public class PasswordServiceClientCredentialFactory : Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory
type PasswordServiceClientCredentialFactory = class
    inherit ServiceClientCredentialsFactory
Public Class PasswordServiceClientCredentialFactory
Inherits ServiceClientCredentialsFactory
Dziedziczenie
PasswordServiceClientCredentialFactory

Konstruktory

Nazwa Opis
PasswordServiceClientCredentialFactory()

Inicjuje nowe wystąpienie klasy PasswordServiceClientCredentialFactory. z pustymi uprawnieniami.

PasswordServiceClientCredentialFactory(String, String, String, HttpClient, ILogger)

Inicjuje nowe wystąpienie klasy PasswordServiceClientCredentialFactory. z udostępnionymi uprawnieniami.

Właściwości

Nazwa Opis
AppId

Pobiera lub ustawia identyfikator aplikacji dla tego uwierzytelnienia.

Password

Pobiera lub ustawia hasło do aplikacji do tego logowania.

TenantId

Otrzymuje identyfikator tenanta Azure AD, w którym bot został utworzony.

Metody

Nazwa Opis
CreateCredentialsAsync(String, String, String, Boolean, CancellationToken)

Fabryczna metoda tworzenia ServiceClientCredentials.

IsAuthenticationDisabledAsync(CancellationToken)

Sprawdza, czy uwierzytelnianie bota jest wyłączone.

IsValidAppIdAsync(String, CancellationToken)

Weryfikuje identyfikator aplikacji.

Dotyczy