ConfigurationCredentialProvider ConfigurationCredentialProvider 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
ConfigurationCredentialProviderConfigurationCredentialProviderConfigurationCredentialProvider

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() ConfigurationCredentialProvider() ConfigurationCredentialProvider()
ConfigurationCredentialProvider(IConfiguration) ConfigurationCredentialProvider(IConfiguration) ConfigurationCredentialProvider(IConfiguration)

Properties

AppId AppId AppId

Gets or sets the app ID for this credential.

(Inherited from SimpleCredentialProvider)
Password Password Password

Gets or sets the app password for this credential.

(Inherited from SimpleCredentialProvider)

Methods

GetAppPasswordAsync(String) GetAppPasswordAsync(String) GetAppPasswordAsync(String)

Gets the app password for a given bot app ID.

(Inherited from SimpleCredentialProvider)
IsAuthenticationDisabledAsync() IsAuthenticationDisabledAsync() IsAuthenticationDisabledAsync()

Checks whether bot authentication is disabled.

(Inherited from SimpleCredentialProvider)
IsValidAppIdAsync(String) IsValidAppIdAsync(String) IsValidAppIdAsync(String)

Validates an app ID.

(Inherited from SimpleCredentialProvider)

Applies to