11#include <azure/core/credentials/credentials.hpp>
12#include <azure/core/credentials/token_credential_options.hpp>
17namespace Azure {
namespace Identity {
19 class ManagedIdentitySource;
27 std::string m_resourceId;
42 std::string
ToString()
const {
return m_resourceId; }
54 std::unique_ptr<_detail::ManagedIdentitySource> m_managedIdentitySource;
70 std::string
const& clientId = std::string(),
71 Azure::Core::Credentials::TokenCredentialOptions
const& options
72 = Azure::Core::Credentials::TokenCredentialOptions());
83 Azure::Core::Credentials::TokenCredentialOptions
const& options = {});
91 Azure::Core::Credentials::TokenCredentialOptions
const& options);
103 Core::Credentials::AccessToken
GetToken(
104 Core::Credentials::TokenRequestContext
const& tokenRequestContext,
105 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:52
Core::Credentials::AccessToken GetToken(Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override
Gets an authentication token.
Definition managed_identity_credential.cpp:70
~ManagedIdentityCredential() override
Destructs TokenCredential.
An Azure Resource Manager resource identifier.
Definition managed_identity_credential.hpp:26
std::string ToString() const
The string representation of this resource identifier.
Definition managed_identity_credential.hpp:42
ResourceIdentifier(std::string const &resourceId)
Constructs a resource identifier.
Definition managed_identity_credential.hpp:35