Språk

ConfigurationCredentialProvider Klass

Definition

Varning

Use ConfigurationBotFrameworkAuthentication instead to configure credentials.

Laddar in inloggningsuppgifter från .AppSettings

[System.Obsolete("Use `ConfigurationBotFrameworkAuthentication` instead to configure credentials.", false)]
public sealed class ConfigurationCredentialProvider : Microsoft.Bot.Connector.Authentication.SimpleCredentialProvider
[<System.Obsolete("Use `ConfigurationBotFrameworkAuthentication` instead to configure credentials.", false)>]
type ConfigurationCredentialProvider = class
    inherit SimpleCredentialProvider
Public NotInheritable Class ConfigurationCredentialProvider
Inherits SimpleCredentialProvider
Arv
ConfigurationCredentialProvider
Attribut

Kommentarer

Detta kommer att fylla på AppId från en appinställning med nyckeln av MicrosoftAppIdKey och från Password en appinställning med nyckeln .MicrosoftAppPasswordKey

OBS: om nycklarna inte finns kommer ett null värde att användas.

Konstruktorer

Name Description
ConfigurationCredentialProvider()
Föråldrad.

Initierar en ny instans av ConfigurationCredentialProvider klassen.

ConfigurationCredentialProvider(IConfiguration)
Föråldrad.

Initierar en ny instans av ConfigurationCredentialProvider klassen.

Egenskaper

Name Description
AppId
Föråldrad.

Får eller ställer in app-ID:t för denna legitimation.

(Ärvd från SimpleCredentialProvider)
Password
Föråldrad.

Hämtar eller ställer in appens lösenord för denna legitimation.

(Ärvd från SimpleCredentialProvider)

Metoder

Name Description
GetAppPasswordAsync(String)
Föråldrad.

Får appens lösenord för ett givet bot-app-ID.

(Ärvd från SimpleCredentialProvider)
IsAuthenticationDisabledAsync()
Föråldrad.

Kontrollerar om robotautentisering är inaktiverat.

(Ärvd från SimpleCredentialProvider)
IsValidAppIdAsync(String)
Föråldrad.

Validerar ett app-ID.

(Ärvd från SimpleCredentialProvider)

Gäller för