11#include "azure/identity/detail/client_credential_core.hpp"
13#include <azure/core/credentials/token_credential_options.hpp>
18namespace Azure {
namespace Identity {
20 class ClientAssertionCredentialImpl;
39 std::string
AuthorityHost = _detail::DefaultOptionValues::GetAuthorityHost();
56 std::unique_ptr<_detail::ClientAssertionCredentialImpl> m_impl;
73 std::function<std::string(Core::Context
const&)> assertionCallback,
92 Core::Credentials::AccessToken
GetToken(
93 Core::Credentials::TokenRequestContext
const& tokenRequestContext,
94 Core::Context
const& context)
const override;
Credential which authenticates a Microsoft Entra service principal using a signed client assertion.
Definition client_assertion_credential.hpp:54
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:156
~ClientAssertionCredential() override
Destructs ClientAssertionCredential.
Options used to configure the Client Assertion credential.
Definition client_assertion_credential.hpp:28
std::vector< std::string > AdditionallyAllowedTenants
For multi-tenant applications, specifies additional tenants for which the credential may acquire toke...
Definition client_assertion_credential.hpp:46
std::string AuthorityHost
Authentication authority URL.
Definition client_assertion_credential.hpp:39