12#include "azure/identity/detail/client_credential_core.hpp"
15#include <azure/core/credentials/token_credential_options.hpp>
20namespace Azure {
namespace Identity {
22 class ClientAssertionCredentialImpl;
35 std::string
TenantId = _detail::DefaultOptionValues::GetTenantId();
41 std::string
ClientId = _detail::DefaultOptionValues::GetClientId();
53 std::string
AuthorityHost = _detail::DefaultOptionValues::GetAuthorityHost();
59 std::string
TokenFilePath = _detail::DefaultOptionValues::GetFederatedTokenFile();
78 std::unique_ptr<_detail::ClientAssertionCredentialImpl> m_clientAssertionCredentialImpl;
79 std::string m_tokenFilePath;
81 std::string GetAssertion(Core::Context
const& context)
const;
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:76
Core::Credentials::AccessToken GetToken(Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override
Gets an authentication token.
Definition workload_identity_credential.cpp:106
~WorkloadIdentityCredential() override
Destructs WorkloadIdentityCredential.
Client Assertion Credential and options.
Options for workload identity credential.
Definition workload_identity_credential.hpp:30
std::string ClientId
The ClientID of the service principal. Defaults to the value of the environment variable AZURE_CLIENT...
Definition workload_identity_credential.hpp:41
std::string AuthorityHost
Authentication authority URL.
Definition workload_identity_credential.hpp:53
std::string TenantId
The TenantID of the service principal. Defaults to the value of the environment variable AZURE_TENANT...
Definition workload_identity_credential.hpp:35
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:59
std::vector< std::string > AdditionallyAllowedTenants
For multi-tenant applications, specifies additional tenants for which the credential may acquire toke...
Definition workload_identity_credential.hpp:66