11 #include <azure/core/credentials/credentials.hpp>
12 #include <azure/core/credentials/token_credential_options.hpp>
17 namespace Azure {
namespace Identity {
19 class ManagedIdentitySource;
28 std::unique_ptr<_detail::ManagedIdentitySource> m_managedIdentitySource;
44 std::string
const& clientId = std::string(),
45 Azure::Core::Credentials::TokenCredentialOptions
const& options
46 = Azure::Core::Credentials::TokenCredentialOptions());
54 Azure::Core::Credentials::TokenCredentialOptions
const& options);
66 Core::Credentials::AccessToken
GetToken(
67 Core::Credentials::TokenRequestContext
const& tokenRequestContext,
68 Core::Context
const& context)
const override;
Client Secret Credential authenticates with the Azure services using a Tenant ID, Client ID and a cli...
Definition: managed_identity_credential.hpp:26
Core::Credentials::AccessToken GetToken(Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override
Gets an authentication token.
Definition: managed_identity_credential.cpp:60
ManagedIdentityCredential(std::string const &clientId=std::string(), Azure::Core::Credentials::TokenCredentialOptions const &options=Azure::Core::Credentials::TokenCredentialOptions())
Constructs a Managed Identity Credential.
Definition: managed_identity_credential.cpp:46
~ManagedIdentityCredential() override
Destructs TokenCredential.
Azure SDK abstractions.
Definition: azure_cli_credential.hpp:22