11#include <azure/core/credentials/credentials.hpp>
12#include <azure/core/credentials/token_credential_options.hpp>
17namespace Azure {
namespace Identity {
19 class ManagedIdentitySource;
31 std::unique_ptr<_detail::ManagedIdentitySource> m_managedIdentitySource;
47 std::string
const& clientId = std::string(),
48 Azure::Core::Credentials::TokenCredentialOptions
const& options
49 = Azure::Core::Credentials::TokenCredentialOptions());
57 Azure::Core::Credentials::TokenCredentialOptions
const& options);
69 Core::Credentials::AccessToken
GetToken(
70 Core::Credentials::TokenRequestContext
const& tokenRequestContext,
71 Core::Context
const& context)
const override;
Attempts authentication using a managed identity that has been assigned to the deployment environment...
Definition managed_identity_credential.hpp:29
Core::Credentials::AccessToken GetToken(Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override
Gets an authentication token.
Definition managed_identity_credential.cpp:59
~ManagedIdentityCredential() override
Destructs TokenCredential.