CertificateAppCredentials Constructors
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.
Overloads
CertificateAppCredentials(CertificateAppCredentialsOptions) |
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(X509Certificate2, String, String, String, Boolean, 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(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 certificate.
- channelAuthTenant
- String
Optional. The oauth token tenant.
- customHttpClient
- HttpClient
Optional HttpClient to be used when acquiring tokens.
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 certificate.
- channelAuthTenant
- String
Optional. The oauth token tenant.
- customHttpClient
- HttpClient
Optional HttpClient to be used when acquiring tokens.
Applies to
CertificateAppCredentials(X509Certificate2, String, String, String, Boolean, HttpClient, ILogger)
Initializes a new instance of the CertificateAppCredentials class.
public CertificateAppCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, string appId, string channelAuthTenant = default, string oAuthScope = default, bool sendX5c = false, 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 * string * bool * 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 oAuthScope As String = Nothing, Optional sendX5c As Boolean = false, 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 certificate.
- channelAuthTenant
- String
Optional. The oauth token tenant.
- oAuthScope
- String
Optional. The scope for the token.
- sendX5c
- Boolean
Optional. 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.
- customHttpClient
- HttpClient
Optional HttpClient to be used when acquiring tokens.