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 appId and password.
public class ConfigurationServiceClientCredentialFactory : Microsoft.Bot.Connector.Authentication.PasswordServiceClientCredentialFactory
type ConfigurationServiceClientCredentialFactory = class
inherit PasswordServiceClientCredentialFactory
Public Class ConfigurationServiceClientCredentialFactory
Inherits PasswordServiceClientCredentialFactory
- Inheritance
-
ConfigurationServiceClientCredentialFactory
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. |
Properties
| AppId |
Gets or sets the app ID for this credential. (Inherited from PasswordServiceClientCredentialFactory) |
| Password |
Gets or sets the app password for this credential. (Inherited from PasswordServiceClientCredentialFactory) |
Methods
| CreateCredentialsAsync(String, String, String, Boolean, CancellationToken) |
A factory method for creating ServiceClientCredentials. (Inherited from PasswordServiceClientCredentialFactory) |
| IsAuthenticationDisabledAsync(CancellationToken) |
Checks whether bot authentication is disabled. (Inherited from PasswordServiceClientCredentialFactory) |
| IsValidAppIdAsync(String, CancellationToken) |
Validates an app ID. (Inherited from PasswordServiceClientCredentialFactory) |