I
InsightNexus

azure-identity: Azure::Identity::WorkloadIdentityCredential Class Reference

Author

Rachel Davis

Published Feb 15, 2026

Workload Identity Credential supports Azure workload identity authentication on Kubernetes and other hosts supporting workload identity. See the Azure Kubernetes Service documentation at for more information. More...

#include <workload_identity_credential.hpp>

◆ WorkloadIdentityCredential() [1/2]

WorkloadIdentityCredential::WorkloadIdentityCredential ( Core::Credentials::TokenCredentialOptions const &  options = Core::Credentials::TokenCredentialOptions())
explicit
Parameters
optionsOptions for token retrieval.

◆ WorkloadIdentityCredential() [2/2]

Parameters
optionsOptions for token retrieval.

◆ ~WorkloadIdentityCredential()

WorkloadIdentityCredential::~WorkloadIdentityCredential ( )
overridedefault
AccessToken WorkloadIdentityCredential::GetToken ( Core::Credentials::TokenRequestContext const &  tokenRequestContext,
Core::Context const &  context 
) const
override
Parameters
tokenRequestContextA context to get the token in.
contextA context to control the request lifetime.
Exceptions
Azure::Core::Credentials::AuthenticationExceptionAuthentication error occurred.

The documentation for this class was generated from the following files: