11#include "azure/identity/detail/client_credential_core.hpp"
14#include <azure/core/credentials/token_credential_options.hpp>
15#include <azure/core/http/http.hpp>
20namespace Azure {
namespace Identity {
22 class TokenCredentialImpl;
41 std::string
AuthorityHost = _detail::DefaultOptionValues::GetAuthorityHost();
58 std::function<std::string(Core::Context
const&)> m_assertionCallback;
59 _detail::ClientCredentialCore m_clientCredentialCore;
60 std::unique_ptr<_detail::TokenCredentialImpl> m_tokenCredentialImpl;
61 std::string m_requestBody;
62 _detail::TokenCache m_tokenCache;
79 std::function<std::string(Core::Context
const&)> assertionCallback,
98 Core::Credentials::AccessToken
GetToken(
99 Core::Credentials::TokenRequestContext
const& tokenRequestContext,
100 Core::Context
const& context)
const override;
Credential which authenticates a Microsoft Entra service principal using a signed client assertion.
Definition client_assertion_credential.hpp:56
Core::Credentials::AccessToken GetToken(Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override
Obtains an authentication token from Microsoft Entra ID, by calling the assertionCallback specified w...
Definition client_assertion_credential.cpp:110
~ClientAssertionCredential() override
Destructs ClientAssertionCredential.
Options used to configure the Client Assertion credential.
Definition client_assertion_credential.hpp:30
std::vector< std::string > AdditionallyAllowedTenants
For multi-tenant applications, specifies additional tenants for which the credential may acquire toke...
Definition client_assertion_credential.hpp:48
std::string AuthorityHost
Authentication authority URL.
Definition client_assertion_credential.hpp:41