11#include "azure/identity/detail/client_credential_core.hpp"
14#include <azure/core/credentials/token_credential_options.hpp>
19namespace Azure {
namespace Identity {
21 class TokenCredentialImpl;
34 std::string
TenantId = _detail::DefaultOptionValues::GetTenantId();
40 std::string
ClientId = _detail::DefaultOptionValues::GetClientId();
52 std::string
AuthorityHost = _detail::DefaultOptionValues::GetAuthorityHost();
58 std::string
TokenFilePath = _detail::DefaultOptionValues::GetFederatedTokenFile();
77 _detail::TokenCache m_tokenCache;
78 _detail::ClientCredentialCore m_clientCredentialCore;
79 std::unique_ptr<_detail::TokenCredentialImpl> m_tokenCredentialImpl;
80 std::string m_requestBody;
81 std::string m_tokenFilePath;
90 Core::Credentials::TokenCredentialOptions
const& options
91 = Core::Credentials::TokenCredentialOptions());
114 Core::Credentials::AccessToken
GetToken(
115 Core::Credentials::TokenRequestContext
const& tokenRequestContext,
116 Core::Context
const& context)
const override;
Workload Identity Credential supports Azure workload identity authentication on Kubernetes and other ...
Definition workload_identity_credential.hpp:75
Core::Credentials::AccessToken GetToken(Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override
Gets an authentication token.
Definition workload_identity_credential.cpp:103
~WorkloadIdentityCredential() override
Destructs WorkloadIdentityCredential.
Options for workload identity credential.
Definition workload_identity_credential.hpp:29
std::string ClientId
The ClientID of the service principal. Defaults to the value of the environment variable AZURE_CLIENT...
Definition workload_identity_credential.hpp:40
std::string AuthorityHost
Authentication authority URL.
Definition workload_identity_credential.hpp:52
std::string TenantId
The TenantID of the service principal. Defaults to the value of the environment variable AZURE_TENANT...
Definition workload_identity_credential.hpp:34
std::string TokenFilePath
The path of a file containing a Kubernetes service account token. Defaults to the value of the enviro...
Definition workload_identity_credential.hpp:58
std::vector< std::string > AdditionallyAllowedTenants
For multi-tenant applications, specifies additional tenants for which the credential may acquire toke...
Definition workload_identity_credential.hpp:65