Dela via


MsalAppCredentials Konstruktorer

Definition

Överlagringar

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

Initierar en ny instans av klassen MsalAppCredentials.

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

Initierar en ny instans av klassen MsalAppCredentials.

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

Initierar en ny instans av klassen MsalAppCredentials.

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

Initierar en ny instans av klassen MsalAppCredentials.

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

Initierar en ny instans av klassen 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)

Parametrar

clientApplication
IConfidentialClientApplication

Klientprogrammet som ska användas för att hämta token.

appId
String

Microsofts program-ID.

authority
String

Valfri utfärdare.

scope
String

Valfritt anpassat omfång.

validateAuthority
Boolean

Om utfärdaren ska verifieras.

logger
ILogger

Valfritt ILogger.

Gäller för

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

Initierar en ny instans av klassen 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)

Parametrar

appId
String

Microsofts program-ID.

certificate
X509Certificate2

Certifikatet som ska användas för autentisering.

authority
String

Valfri utfärdare.

scope
String

Valfritt anpassat omfång.

validateAuthority
Boolean

Valfri växel för om utfärdaren ska verifieras.

logger
ILogger

Valfritt ILogger.

Gäller för

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

Initierar en ny instans av klassen 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)

Parametrar

appId
String

Microsofts program-ID.

appPassword
String

Microsoft-programmets lösenord.

authority
String

Valfri utfärdare.

scope
String

Valfritt anpassat omfång.

validateAuthority
Boolean

Om utfärdaren ska verifieras.

logger
ILogger

Valfritt ILogger.

Gäller för

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

Initierar en ny instans av klassen 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)

Parametrar

appId
String

Microsofts program-ID.

certificate
X509Certificate2

Certifikatet som ska användas för autentisering.

sendX5c
Boolean

Om true skickar det offentliga certifikatet till Azure AD tillsammans med tokenbegäran, så att Azure AD kan använda det för att verifiera ämnesnamnet baserat på en betrodd utfärdarprincip.

authority
String

Valfri utfärdare.

scope
String

Valfritt anpassat omfång.

validateAuthority
Boolean

Valfri växel för om utfärdaren ska verifieras.

logger
ILogger

Valfritt ILogger.

Gäller för