ConfigurationServiceClientCredentialFactory Class

Definition

Credential provider which uses IConfiguration to lookup appId and password.

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

Remarks

This will populate the AppId from an configuration entry with the key of MicrosoftAppIdKey and the Password from a configuration entry with the key of MicrosoftAppPasswordKey.

NOTE: if the keys are not present, a null value will be used.

Constructors

ConfigurationServiceClientCredentialFactory(IConfiguration, HttpClient, ILogger)

Initializes a new instance of the ConfigurationServiceClientCredentialFactory class.

Properties

AppId

Gets or sets the app ID for this credential.

(Inherited from PasswordServiceClientCredentialFactory)
Password

Gets or sets the app password for this credential.

(Inherited from PasswordServiceClientCredentialFactory)

Methods

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

A factory method for creating ServiceClientCredentials.

(Inherited from PasswordServiceClientCredentialFactory)
IsAuthenticationDisabledAsync(CancellationToken)

Checks whether bot authentication is disabled.

(Inherited from PasswordServiceClientCredentialFactory)
IsValidAppIdAsync(String, CancellationToken)

Validates an app ID.

(Inherited from PasswordServiceClientCredentialFactory)

Applies to