Enables authentication to Azure Active Directory using Azure CLI to obtain an access token.
#include <azure_cli_credential.hpp>
|
_detail::TokenCache | m_tokenCache |
|
std::vector< std::string > | m_additionallyAllowedTenants |
|
std::string | m_tenantId |
|
DateTime::duration | m_cliProcessTimeout |
|
◆ AzureCliCredential() [1/2]
- Parameters
-
options | Options for token retrieval. |
◆ AzureCliCredential() [2/2]
Azure::Identity::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: