Workload Identity Credential supports Azure workload identity authentication on Kubernetes and other hosts supporting workload identity. See the Azure Kubernetes Service documentation at https://learn.microsoft.com/azure/aks/workload-identity-overview for more information.
More...
#include <workload_identity_credential.hpp>
◆ WorkloadIdentityCredential() [1/2]
WorkloadIdentityCredential::WorkloadIdentityCredential |
( |
Core::Credentials::TokenCredentialOptions const & |
options = Core::Credentials::TokenCredentialOptions() | ) |
|
|
explicit |
- Parameters
-
options | Options for token retrieval. |
◆ WorkloadIdentityCredential() [2/2]
- Parameters
-
options | Options for token retrieval. |
◆ ~WorkloadIdentityCredential()
WorkloadIdentityCredential::~WorkloadIdentityCredential |
( |
| ) |
|
|
overridedefault |
◆ GetToken()
AccessToken WorkloadIdentityCredential::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: