Jaa


MsalAppCredentials Constructors

Definition

Overloads

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

Initializes a new instance of the MsalAppCredentials class.

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

Initializes a new instance of the MsalAppCredentials class.

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

Initializes a new instance of the MsalAppCredentials class.

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

Initializes a new instance of the MsalAppCredentials class.

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

Initializes a new instance of the MsalAppCredentials class.

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)

Parameters

clientApplication
IConfidentialClientApplication

The client application to use to acquire tokens.

appId
String

The Microsoft application Id.

authority
String

Optional authority.

scope
String

Optional custom scope.

validateAuthority
Boolean

Whether to validate the authority.

logger
ILogger

Optional ILogger.

Applies to

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

Initializes a new instance of the MsalAppCredentials class.

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)

Parameters

appId
String

The Microsoft application id.

certificate
X509Certificate2

The certificate to use for authentication.

authority
String

Optional authority.

scope
String

Optional custom scope.

validateAuthority
Boolean

Optional switch for whether to validate the authority.

logger
ILogger

Optional ILogger.

Applies to

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

Initializes a new instance of the MsalAppCredentials class.

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)

Parameters

appId
String

The Microsoft application id.

appPassword
String

The Microsoft application password.

authority
String

Optional authority.

scope
String

Optional custom scope.

validateAuthority
Boolean

Whether to validate the authority.

logger
ILogger

Optional ILogger.

Applies to

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

Initializes a new instance of the MsalAppCredentials class.

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)

Parameters

appId
String

The Microsoft application id.

certificate
X509Certificate2

The certificate to use for authentication.

sendX5c
Boolean

If true will send the public certificate to Azure AD along with the token request, so that Azure AD can use it to validate the subject name based on a trusted issuer policy.

authority
String

Optional authority.

scope
String

Optional custom scope.

validateAuthority
Boolean

Optional switch for whether to validate the authority.

logger
ILogger

Optional ILogger.

Applies to