Enables authentication to Microsoft Entra ID using Azure CLI to obtain an access token.
#include <azure_cli_credential.hpp>
|
| AzureCliCredential (AzureCliCredentialOptions const &options={}) |
| Constructs an Azure CLI Credential.
|
|
| AzureCliCredential (Core::Credentials::TokenCredentialOptions const &options) |
| Constructs an Azure CLI Credential.
|
|
Core::Credentials::AccessToken | GetToken (Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override |
| Gets an authentication token.
|
|
|
_detail::TokenCache | m_tokenCache |
| The cache for the access token.
|
|
std::vector< std::string > | m_additionallyAllowedTenants |
| Additional tenants which will be allowed for this credential.
|
|
std::string | m_tenantId |
| The ID of the tenant to which the credential will authenticate by default.
|
|
DateTime::duration | m_cliProcessTimeout |
| The CLI process timeout.
|
|
◆ AzureCliCredential() [1/2]
- Parameters
-
options | Options for token retrieval. |
◆ AzureCliCredential() [2/2]
AzureCliCredential::AzureCliCredential |
( |
Core::Credentials::TokenCredentialOptions const & |
options | ) |
|
|
explicit |
- Parameters
-
options | Options for token retrieval. |
◆ GetToken()
AccessToken AzureCliCredential::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: