PasswordServiceClientCredentialFactory Class

Definition

A simple implementation of the ServiceClientCredentialsFactory interface.

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

Constructors

PasswordServiceClientCredentialFactory()

Initializes a new instance of the PasswordServiceClientCredentialFactory class. with empty credentials.

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

Initializes a new instance of the PasswordServiceClientCredentialFactory class. with the provided credentials.

Properties

AppId

Gets or sets the app ID for this credential.

Password

Gets or sets the app password for this credential.

TenantId

Gets the Tenant ID of the Azure AD tenant where the bot is created.

Methods

CreateCredentialsAsync(String, String, String, Boolean, CancellationToken)

A factory method for creating ServiceClientCredentials.

IsAuthenticationDisabledAsync(CancellationToken)

Checks whether bot authentication is disabled.

IsValidAppIdAsync(String, CancellationToken)

Validates an app ID.

Applies to