ICredentialProvider Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |