ConfigurationServiceClientCredentialFactory Class

Definition

Credential provider which uses IConfiguration to lookup app credentials.

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

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.

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