ConfigurationServiceClientCredentialFactory Class
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.
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
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. |