11 #include "azure/identity/detail/client_credential_core.hpp"
14 #include <azure/core/credentials/credentials.hpp>
15 #include <azure/core/credentials/token_credential_options.hpp>
16 #include <azure/core/url.hpp>
22 namespace Azure {
namespace Identity {
24 class TokenCredentialImpl;
41 std::string
AuthorityHost = _detail::ClientCredentialCore::AadGlobalAuthority;
58 _detail::TokenCache m_tokenCache;
59 _detail::ClientCredentialCore m_clientCredentialCore;
60 std::unique_ptr<_detail::TokenCredentialImpl> m_tokenCredentialImpl;
61 std::string m_requestBody;
65 std::string
const& clientId,
66 std::string
const& clientSecret,
67 std::string
const& authorityHost,
68 std::vector<std::string> additionallyAllowedTenants,
69 Core::Credentials::TokenCredentialOptions
const& options);
82 std::string
const& clientId,
83 std::string
const& clientSecret,
96 std::string
const& clientId,
97 std::string
const& clientSecret,
98 Core::Credentials::TokenCredentialOptions
const& options
99 = Core::Credentials::TokenCredentialOptions());
117 Core::Credentials::AccessToken
GetToken(
118 Core::Credentials::TokenRequestContext
const& tokenRequestContext,
119 Core::Context
const& context)
const override;
Client Secret Credential authenticates with the Azure services using a Tenant ID, Client ID and a cli...
Definition: client_secret_credential.hpp:56
~ClientSecretCredential() override
Destructs ClientSecretCredential.
Core::Credentials::AccessToken GetToken(Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override
Gets an authentication token.
Definition: client_secret_credential.cpp:68
Azure SDK abstractions.
Definition: azure_cli_credential.hpp:22
Options for token authentication.
Definition: client_secret_credential.hpp:32
std::vector< std::string > AdditionallyAllowedTenants
For multi-tenant applications, specifies additional tenants for which the credential may acquire toke...
Definition: client_secret_credential.hpp:48
std::string AuthorityHost
Authentication authority URL.
Definition: client_secret_credential.hpp:41