ConfigurationCredentialProvider Class

Definition

Loads credentials from the AppSettings.

public sealed class ConfigurationCredentialProvider : Microsoft.Bot.Connector.Authentication.SimpleCredentialProvider
type ConfigurationCredentialProvider = class
    inherit SimpleCredentialProvider
Public NotInheritable Class ConfigurationCredentialProvider
Inherits SimpleCredentialProvider
Inheritance
ConfigurationCredentialProvider

Remarks

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

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

Constructors

ConfigurationCredentialProvider()

Initializes a new instance of the ConfigurationCredentialProvider class.

ConfigurationCredentialProvider(IConfiguration)

Initializes a new instance of the ConfigurationCredentialProvider class.

Properties

AppId

Gets or sets the app ID for this credential.

(Inherited from SimpleCredentialProvider)
Password

Gets or sets the app password for this credential.

(Inherited from SimpleCredentialProvider)

Methods

GetAppPasswordAsync(String)

Gets the app password for a given bot app ID.

(Inherited from SimpleCredentialProvider)
IsAuthenticationDisabledAsync()

Checks whether bot authentication is disabled.

(Inherited from SimpleCredentialProvider)
IsValidAppIdAsync(String)

Validates an app ID.

(Inherited from SimpleCredentialProvider)

Applies to