Client Certificate Credential authenticates with the Azure services using a Tenant ID, Client ID and a client certificate.
#include <client_certificate_credential.hpp>
|
| ClientCertificateCredential (std::string tenantId, std::string const &clientId, std::string const &clientCertificatePath, Core::Credentials::TokenCredentialOptions const &options=Core::Credentials::TokenCredentialOptions()) |
| Constructs a Client Secret Credential. More...
|
|
| ClientCertificateCredential (std::string tenantId, std::string const &clientId, std::string const &clientCertificatePath, ClientCertificateCredentialOptions const &options) |
| Constructs a Client Secret Credential. More...
|
|
| ~ClientCertificateCredential () override |
| Destructs ClientCertificateCredential .
|
|
Core::Credentials::AccessToken | GetToken (Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override |
| Gets an authentication token. More...
|
|
◆ ClientCertificateCredential() [1/2]
Azure::Identity::ClientCertificateCredential::ClientCertificateCredential |
( |
std::string |
tenantId, |
|
|
std::string const & |
clientId, |
|
|
std::string const & |
clientCertificatePath, |
|
|
Core::Credentials::TokenCredentialOptions const & |
options = Core::Credentials::TokenCredentialOptions() |
|
) |
| |
|
explicit |
- Parameters
-
tenantId | Tenant ID. |
clientId | Client ID. |
clientCertificatePath | Client certificate path. |
options | Options for token retrieval. |
◆ ClientCertificateCredential() [2/2]
ClientCertificateCredential::ClientCertificateCredential |
( |
std::string |
tenantId, |
|
|
std::string const & |
clientId, |
|
|
std::string const & |
clientCertificatePath, |
|
|
ClientCertificateCredentialOptions const & |
options |
|
) |
| |
|
explicit |
- Parameters
-
tenantId | Tenant ID. |
clientId | Client ID. |
clientCertificatePath | Client certificate path. |
options | Options for token retrieval. |
◆ GetToken()
AccessToken ClientCertificateCredential::GetToken |
( |
Core::Credentials::TokenRequestContext const & |
tokenRequestContext, |
|
|
Core::Context const & |
context |
|
) |
| const |
|
override |
- Parameters
-
tokenRequestContext | A context to get the token in. |
context | A context to control the request lifetime. |
- Exceptions
-
Azure::Core::Credentials::AuthenticationException | Authentication error occurred. |
The documentation for this class was generated from the following files: