Compartir a través de


MsalAppCredentials Constructores

Definición

Sobrecargas

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

Inicializa una nueva instancia de la clase MsalAppCredentials.

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

Inicializa una nueva instancia de la clase MsalAppCredentials.

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

Inicializa una nueva instancia de la clase MsalAppCredentials.

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

Inicializa una nueva instancia de la clase MsalAppCredentials.

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

Inicializa una nueva instancia de la clase 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)

Parámetros

clientApplication
IConfidentialClientApplication

Aplicación cliente que se va a usar para adquirir tokens.

appId
String

Identificador de aplicación de Microsoft.

authority
String

Autoridad opcional.

scope
String

Ámbito personalizado opcional.

validateAuthority
Boolean

Si se va a validar la autoridad.

logger
ILogger

Opcional ILogger.

Se aplica a

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

Inicializa una nueva instancia de la clase 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)

Parámetros

appId
String

Identificador de la aplicación de Microsoft.

certificate
X509Certificate2

Certificado que se va a usar para la autenticación.

authority
String

Autoridad opcional.

scope
String

Ámbito personalizado opcional.

validateAuthority
Boolean

Modificador opcional para si se va a validar la entidad.

logger
ILogger

Opcional ILogger.

Se aplica a

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

Inicializa una nueva instancia de la clase 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)

Parámetros

appId
String

Identificador de la aplicación de Microsoft.

appPassword
String

Contraseña de la aplicación de Microsoft.

authority
String

Autoridad opcional.

scope
String

Ámbito personalizado opcional.

validateAuthority
Boolean

Si se va a validar la autoridad.

logger
ILogger

Opcional ILogger.

Se aplica a

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

Inicializa una nueva instancia de la clase 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)

Parámetros

appId
String

Identificador de la aplicación de Microsoft.

certificate
X509Certificate2

Certificado que se va a usar para la autenticación.

sendX5c
Boolean

Si true enviará el certificado público a Azure AD junto con la solicitud de token, para que Azure AD pueda usarlo para validar el nombre del firmante en función de una directiva de emisor de confianza.

authority
String

Autoridad opcional.

scope
String

Ámbito personalizado opcional.

validateAuthority
Boolean

Modificador opcional para si se va a validar la entidad.

logger
ILogger

Opcional ILogger.

Se aplica a