Share via


ICredentialProvider Interface

Definition

Caution

Use ConfigurationBotFrameworkAuthentication instead to configure credentials.

CredentialProvider interface. This interface allows Bots to provide their own implementation of what is, and what is not, a valid appId and password. This is useful in the case of multi-tenant bots, where the bot may need to call out to a service to determine if a particular appid/password pair is valid.

For Single Tenant bots (the vast majority) the simple static providers are sufficient.

[System.Obsolete("Use `ConfigurationBotFrameworkAuthentication` instead to configure credentials.", false)]
public interface ICredentialProvider
[<System.Obsolete("Use `ConfigurationBotFrameworkAuthentication` instead to configure credentials.", false)>]
type ICredentialProvider = interface
Public Interface ICredentialProvider
Derived
Attributes

Methods

GetAppPasswordAsync(String)

Gets the app password for a given bot app ID.

IsAuthenticationDisabledAsync()

Checks whether bot authentication is disabled.

IsValidAppIdAsync(String)

Validates an app ID.

Applies to