MsalAppCredentials Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
MsalAppCredentials(IConfidentialClientApplication, String, String, String, Boolean, ILogger) |
Initialise une nouvelle instance de la classe MsalAppCredentials. |
MsalAppCredentials(String, X509Certificate2, String, String, Boolean, ILogger) |
Initialise une nouvelle instance de la classe MsalAppCredentials. |
MsalAppCredentials(String, String, String, String, Boolean, ILogger) |
Initialise une nouvelle instance de la classe MsalAppCredentials. |
MsalAppCredentials(String, X509Certificate2, Boolean, String, String, Boolean, ILogger) |
Initialise une nouvelle instance de la classe MsalAppCredentials. |
MsalAppCredentials(IConfidentialClientApplication, String, String, String, Boolean, ILogger)
Initialise une nouvelle instance de la classe MsalAppCredentials.
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)
Paramètres
- clientApplication
- IConfidentialClientApplication
Application cliente à utiliser pour acquérir des jetons.
- appId
- String
ID d’application Microsoft.
- authority
- String
Autorité facultative.
- scope
- String
Étendue personnalisée facultative.
- validateAuthority
- Boolean
Indique s’il faut valider l’autorité.
S’applique à
MsalAppCredentials(String, X509Certificate2, String, String, Boolean, ILogger)
Initialise une nouvelle instance de la classe MsalAppCredentials.
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)
Paramètres
- appId
- String
ID d’application Microsoft.
- certificate
- X509Certificate2
Certificat à utiliser pour l’authentification.
- authority
- String
Autorité facultative.
- scope
- String
Étendue personnalisée facultative.
- validateAuthority
- Boolean
Commutateur facultatif pour vérifier s’il faut valider l’autorité.
S’applique à
MsalAppCredentials(String, String, String, String, Boolean, ILogger)
Initialise une nouvelle instance de la classe MsalAppCredentials.
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)
Paramètres
- appId
- String
ID d’application Microsoft.
- appPassword
- String
Mot de passe de l’application Microsoft.
- authority
- String
Autorité facultative.
- scope
- String
Étendue personnalisée facultative.
- validateAuthority
- Boolean
Indique s’il faut valider l’autorité.
S’applique à
MsalAppCredentials(String, X509Certificate2, Boolean, String, String, Boolean, ILogger)
Initialise une nouvelle instance de la classe MsalAppCredentials.
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)
Paramètres
- appId
- String
ID d’application Microsoft.
- certificate
- X509Certificate2
Certificat à utiliser pour l’authentification.
- sendX5c
- Boolean
Si true envoie le certificat public à Azure AD avec la demande de jeton, afin qu’Azure AD puisse l’utiliser pour valider le nom de l’objet en fonction d’une stratégie d’émetteur approuvée.
- authority
- String
Autorité facultative.
- scope
- String
Étendue personnalisée facultative.
- validateAuthority
- Boolean
Commutateur facultatif pour vérifier s’il faut valider l’autorité.