CertificateAppCredentials Constructors

Definition

Overloads

CertificateAppCredentials(CertificateAppCredentialsOptions)

Initializes a new instance of the CertificateAppCredentials class.

CertificateAppCredentials(ClientAssertionCertificate, String, HttpClient, ILogger)

Initializes a new instance of the CertificateAppCredentials class.

CertificateAppCredentials(ClientAssertionCertificate, Boolean, String, HttpClient, ILogger)

Initializes a new instance of the CertificateAppCredentials class.

CertificateAppCredentials(X509Certificate2, String, String, HttpClient, ILogger)

Initializes a new instance of the CertificateAppCredentials class.

CertificateAppCredentials(X509Certificate2, Boolean, String, String, HttpClient, ILogger)

Initializes a new instance of the CertificateAppCredentials class.

CertificateAppCredentials(CertificateAppCredentialsOptions)

Initializes a new instance of the CertificateAppCredentials class.

public CertificateAppCredentials (Microsoft.Bot.Connector.Authentication.CertificateAppCredentialsOptions options);
new Microsoft.Bot.Connector.Authentication.CertificateAppCredentials : Microsoft.Bot.Connector.Authentication.CertificateAppCredentialsOptions -> Microsoft.Bot.Connector.Authentication.CertificateAppCredentials
Public Sub New (options As CertificateAppCredentialsOptions)

Parameters

options
CertificateAppCredentialsOptions

Options for this CertificateAppCredentials.

Applies to

CertificateAppCredentials(ClientAssertionCertificate, String, HttpClient, ILogger)

Initializes a new instance of the CertificateAppCredentials class.

public CertificateAppCredentials (Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate clientCertificate, string channelAuthTenant = default, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.CertificateAppCredentials : Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.CertificateAppCredentials
Public Sub New (clientCertificate As ClientAssertionCertificate, Optional channelAuthTenant As String = Nothing, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)

Parameters

clientCertificate
ClientAssertionCertificate

Client certificate to be presented for authentication.

channelAuthTenant
String

Optional. The oauth token tenant.

customHttpClient
HttpClient

Optional HttpClient to be used when acquiring tokens.

logger
ILogger

Optional ILogger to gather telemetry data while acquiring and managing credentials.

Applies to

CertificateAppCredentials(ClientAssertionCertificate, Boolean, String, HttpClient, ILogger)

Initializes a new instance of the CertificateAppCredentials class.

public CertificateAppCredentials (Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate clientCertificate, bool sendX5c, string channelAuthTenant = default, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.CertificateAppCredentials : Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate * bool * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.CertificateAppCredentials
Public Sub New (clientCertificate As ClientAssertionCertificate, sendX5c As Boolean, Optional channelAuthTenant As String = Nothing, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)

Parameters

clientCertificate
ClientAssertionCertificate

Client certificate to be presented for authentication.

sendX5c
Boolean

This parameter, if true, enables application developers to achieve easy certificates roll-over in Azure AD: setting this parameter to 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.

channelAuthTenant
String

Optional. The oauth token tenant.

customHttpClient
HttpClient

Optional HttpClient to be used when acquiring tokens.

logger
ILogger

Optional ILogger to gather telemetry data while acquiring and managing credentials.

Applies to

CertificateAppCredentials(X509Certificate2, String, String, HttpClient, ILogger)

Initializes a new instance of the CertificateAppCredentials class.

public CertificateAppCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, string appId, string channelAuthTenant = default, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.CertificateAppCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.CertificateAppCredentials
Public Sub New (clientCertificate As X509Certificate2, appId As String, Optional channelAuthTenant As String = Nothing, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)

Parameters

clientCertificate
X509Certificate2

Client certificate to be presented for authentication.

appId
String

Microsoft application Id related to the certifiacte.

channelAuthTenant
String

Optional. The oauth token tenant.

customHttpClient
HttpClient

Optional HttpClient to be used when acquiring tokens.

logger
ILogger

Optional ILogger to gather telemetry data while acquiring and managing credentials.

Applies to

CertificateAppCredentials(X509Certificate2, Boolean, String, String, HttpClient, ILogger)

Initializes a new instance of the CertificateAppCredentials class.

public CertificateAppCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, bool sendX5c, string appId, string channelAuthTenant = default, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.CertificateAppCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * bool * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.CertificateAppCredentials
Public Sub New (clientCertificate As X509Certificate2, sendX5c As Boolean, appId As String, Optional channelAuthTenant As String = Nothing, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)

Parameters

clientCertificate
X509Certificate2

Client certificate to be presented for authentication.

sendX5c
Boolean

This parameter, if true, enables application developers to achieve easy certificates roll-over in Azure AD: setting this parameter to 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.

appId
String

Microsoft application Id related to the certifiacte.

channelAuthTenant
String

Optional. The oauth token tenant.

customHttpClient
HttpClient

Optional HttpClient to be used when acquiring tokens.

logger
ILogger

Optional ILogger to gather telemetry data while acquiring and managing credentials.

Applies to