CertificateServiceClientCredentialsFactory Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the CertificateServiceClientCredentialsFactory class.
public CertificateServiceClientCredentialsFactory (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string appId, string tenantId = default, System.Net.Http.HttpClient httpClient = default, Microsoft.Extensions.Logging.ILogger logger = default, bool sendX5c = false);
new Microsoft.Bot.Connector.Authentication.CertificateServiceClientCredentialsFactory : System.Security.Cryptography.X509Certificates.X509Certificate2 * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * bool -> Microsoft.Bot.Connector.Authentication.CertificateServiceClientCredentialsFactory
Public Sub New (certificate As X509Certificate2, appId As String, Optional tenantId As String = Nothing, Optional httpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing, Optional sendX5c As Boolean = false)
Parameters
- certificate
- X509Certificate2
The certificate to use for authentication.
- appId
- String
Microsoft application Id related to the certificate.
- tenantId
- String
The oauth token tenant.
- httpClient
- HttpClient
A custom httpClient to use.
- logger
- ILogger
A logger instance to use.
- sendX5c
- Boolean
A flag if CertificateAppCredentials should send certificate chains in the request. It enables authentication with AAD using certificate subject name (not CNAME) and issuer instead of a thumbprint.