Sdílet prostřednictvím


MsalAppCredentials Konstruktory

Definice

Přetížení

MsalAppCredentials(IConfidentialClientApplication, String, String, String, Boolean, ILogger)

Inicializuje novou instanci MsalAppCredentials třídy.

MsalAppCredentials(String, X509Certificate2, String, String, Boolean, ILogger)

Inicializuje novou instanci MsalAppCredentials třídy.

MsalAppCredentials(String, String, String, String, Boolean, ILogger)

Inicializuje novou instanci MsalAppCredentials třídy.

MsalAppCredentials(String, X509Certificate2, Boolean, String, String, Boolean, ILogger)

Inicializuje novou instanci MsalAppCredentials třídy.

MsalAppCredentials(IConfidentialClientApplication, String, String, String, Boolean, ILogger)

Inicializuje novou instanci MsalAppCredentials třídy.

public MsalAppCredentials (Microsoft.Identity.Client.IConfidentialClientApplication clientApplication, string appId, string authority = default, string scope = default, bool validateAuthority = true, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.MsalAppCredentials : Microsoft.Identity.Client.IConfidentialClientApplication * string * string * string * bool * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MsalAppCredentials
Public Sub New (clientApplication As IConfidentialClientApplication, appId As String, Optional authority As String = Nothing, Optional scope As String = Nothing, Optional validateAuthority As Boolean = true, Optional logger As ILogger = Nothing)

Parametry

clientApplication
IConfidentialClientApplication

Klientská aplikace, která se má použít k získání tokenů.

appId
String

ID aplikace Microsoftu.

authority
String

Nepovinná autorita.

scope
String

Volitelný vlastní obor

validateAuthority
Boolean

Zda se má autorita ověřit.

logger
ILogger

Volitelné ILogger.

Platí pro

MsalAppCredentials(String, X509Certificate2, String, String, Boolean, ILogger)

Inicializuje novou instanci MsalAppCredentials třídy.

public MsalAppCredentials (string appId, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string authority = default, string scope = default, bool validateAuthority = true, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.MsalAppCredentials : string * System.Security.Cryptography.X509Certificates.X509Certificate2 * string * string * bool * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MsalAppCredentials
Public Sub New (appId As String, certificate As X509Certificate2, Optional authority As String = Nothing, Optional scope As String = Nothing, Optional validateAuthority As Boolean = true, Optional logger As ILogger = Nothing)

Parametry

appId
String

ID aplikace Microsoftu.

certificate
X509Certificate2

Certifikát, který se má použít k ověřování.

authority
String

Nepovinná autorita.

scope
String

Volitelný vlastní obor

validateAuthority
Boolean

Volitelný přepínač pro ověření autority.

logger
ILogger

Volitelné ILogger.

Platí pro

MsalAppCredentials(String, String, String, String, Boolean, ILogger)

Inicializuje novou instanci MsalAppCredentials třídy.

public MsalAppCredentials (string appId, string appPassword, string authority = default, string scope = default, bool validateAuthority = true, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.MsalAppCredentials : string * string * string * string * bool * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MsalAppCredentials
Public Sub New (appId As String, appPassword As String, Optional authority As String = Nothing, Optional scope As String = Nothing, Optional validateAuthority As Boolean = true, Optional logger As ILogger = Nothing)

Parametry

appId
String

ID aplikace Microsoftu.

appPassword
String

Heslo aplikace Microsoftu.

authority
String

Nepovinná autorita.

scope
String

Volitelný vlastní obor

validateAuthority
Boolean

Zda se má autorita ověřit.

logger
ILogger

Volitelné ILogger.

Platí pro

MsalAppCredentials(String, X509Certificate2, Boolean, String, String, Boolean, ILogger)

Inicializuje novou instanci MsalAppCredentials třídy.

public MsalAppCredentials (string appId, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, bool sendX5c, string authority = default, string scope = default, bool validateAuthority = true, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.MsalAppCredentials : string * System.Security.Cryptography.X509Certificates.X509Certificate2 * bool * string * string * bool * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.MsalAppCredentials
Public Sub New (appId As String, certificate As X509Certificate2, sendX5c As Boolean, Optional authority As String = Nothing, Optional scope As String = Nothing, Optional validateAuthority As Boolean = true, Optional logger As ILogger = Nothing)

Parametry

appId
String

ID aplikace Microsoftu.

certificate
X509Certificate2

Certifikát, který se má použít k ověřování.

sendX5c
Boolean

Pokud hodnota true odešle veřejný certifikát do Azure AD spolu s požadavkem na token, aby ji služba Azure AD mohl použít k ověření názvu subjektu na základě zásad důvěryhodného vystavitele.

authority
String

Nepovinná autorita.

scope
String

Volitelný vlastní obor

validateAuthority
Boolean

Volitelný přepínač pro ověření autority.

logger
ILogger

Volitelné ILogger.

Platí pro