Credential which authenticates using an Azure Pipelines service connection.
More...
#include <azure_pipelines_credential.hpp>
|
| AzurePipelinesCredential (std::string tenantId, std::string clientId, std::string serviceConnectionId, std::string systemAccessToken, AzurePipelinesCredentialOptions const &options={}) |
| Constructs an Azure Pipelines Credential.
|
|
| ~AzurePipelinesCredential () override |
| Destructs AzurePipelinesCredential .
|
|
Core::Credentials::AccessToken | GetToken (Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override |
| Gets an authentication token.
|
|
◆ AzurePipelinesCredential()
AzurePipelinesCredential::AzurePipelinesCredential |
( |
std::string |
tenantId, |
|
|
std::string |
clientId, |
|
|
std::string |
serviceConnectionId, |
|
|
std::string |
systemAccessToken, |
|
|
AzurePipelinesCredentialOptions const & |
options = {} |
|
) |
| |
|
explicit |
◆ ~AzurePipelinesCredential()
AzurePipelinesCredential::~AzurePipelinesCredential |
( |
| ) |
|
|
overridedefault |
◆ GetToken()
AccessToken AzurePipelinesCredential::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: