azure-identity
Public Member Functions | List of all members
Azure::Identity::ManagedIdentityCredential Class Referencefinal

Client Secret Credential authenticates with the Azure services using a Tenant ID, Client ID and a client secret.

#include <managed_identity_credential.hpp>

Inheritance diagram for Azure::Identity::ManagedIdentityCredential:

Public Member Functions

 ~ManagedIdentityCredential () override
 Destructs TokenCredential.
 
 ManagedIdentityCredential (std::string const &clientId=std::string(), Azure::Core::Credentials::TokenCredentialOptions const &options=Azure::Core::Credentials::TokenCredentialOptions())
 Constructs a Managed Identity Credential. More...
 
 ManagedIdentityCredential (Azure::Core::Credentials::TokenCredentialOptions const &options)
 Constructs a Managed Identity Credential. More...
 
Core::Credentials::AccessToken GetToken (Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override
 Gets an authentication token. More...
 

Constructor & Destructor Documentation

◆ ManagedIdentityCredential() [1/2]

ManagedIdentityCredential::ManagedIdentityCredential ( std::string const &  clientId = std::string(),
Azure::Core::Credentials::TokenCredentialOptions const &  options = Azure::Core::Credentials::TokenCredentialOptions() 
)
explicit
Parameters
clientIdClient ID.
optionsOptions for token retrieval.

◆ ManagedIdentityCredential() [2/2]

ManagedIdentityCredential::ManagedIdentityCredential ( Azure::Core::Credentials::TokenCredentialOptions const &  options)
explicit
Parameters
optionsOptions for token retrieval.

Member Function Documentation

◆ GetToken()

Azure::Core::Credentials::AccessToken ManagedIdentityCredential::GetToken ( Core::Credentials::TokenRequestContext const &  tokenRequestContext,
Core::Context const &  context 
) const
override
Parameters
tokenRequestContextA context to get the token in.
contextA context to control the request lifetime.
Returns
Authentication token.
Exceptions
Azure::Core::Credentials::AuthenticationExceptionAuthentication error occurred.

The documentation for this class was generated from the following files: