ConfigurationCredentialProvider Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przestroga
Use ConfigurationBotFrameworkAuthentication instead to configure credentials.
Ładuje poświadczenia z elementu 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
- Dziedziczenie
- Atrybuty
Uwagi
Spowoduje to wypełnienie AppId wpisu z ustawienia aplikacji kluczem MicrosoftAppIdKey i Password ustawieniem z poziomu aplikacji przy użyciu klucza MicrosoftAppPasswordKey.
UWAGA: jeśli klucze nie są obecne, zostanie użyta null wartość.
Konstruktory
| ConfigurationCredentialProvider() |
Przestarzałe.
Inicjuje nowe wystąpienie klasy ConfigurationCredentialProvider. |
| ConfigurationCredentialProvider(IConfiguration) |
Przestarzałe.
Inicjuje nowe wystąpienie klasy ConfigurationCredentialProvider. |
Właściwości
| AppId |
Przestarzałe.
Pobiera lub ustawia identyfikator aplikacji dla tego poświadczenia. (Odziedziczone po SimpleCredentialProvider) |
| Password |
Przestarzałe.
Pobiera lub ustawia hasło aplikacji dla tego poświadczenia. (Odziedziczone po SimpleCredentialProvider) |
Metody
| GetAppPasswordAsync(String) |
Przestarzałe.
Pobiera hasło aplikacji dla danego identyfikatora aplikacji bota. (Odziedziczone po SimpleCredentialProvider) |
| IsAuthenticationDisabledAsync() |
Przestarzałe.
Sprawdza, czy uwierzytelnianie bota jest wyłączone. (Odziedziczone po SimpleCredentialProvider) |
| IsValidAppIdAsync(String) |
Przestarzałe.
Weryfikuje identyfikator aplikacji. (Odziedziczone po SimpleCredentialProvider) |