Environment Credential initializes an Azure credential, based on the system environment variables being set.
More...
#include <environment_credential.hpp>
- Note
- May read from the following environment variables:
AZURE_TENANT_ID
AZURE_CLIENT_ID
AZURE_CLIENT_SECRET
AZURE_CLIENT_CERTIFICATE_PATH
AZURE_CLIENT_CERTIFICATE_PASSWORD
AZURE_CLIENT_SEND_CERTIFICATE_CHAIN
AZURE_USERNAME
AZURE_PASSWORD
AZURE_AUTHORITY_HOST
◆ EnvironmentCredential() [1/2]
Azure::Identity::EnvironmentCredential::EnvironmentCredential |
( |
Core::Credentials::TokenCredentialOptions const & |
options = Core::Credentials::TokenCredentialOptions() | ) |
|
|
explicit |
- Parameters
-
options | Options for token retrieval. |
◆ EnvironmentCredential() [2/2]
- Parameters
-
options | Options for token retrieval. |
◆ GetToken()
AccessToken EnvironmentCredential::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: