azure-identity: Azure::Identity::ClientSecretCredential Class Reference

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

#include <client_secret_credential.hpp>

 ClientSecretCredential (std::string tenantId, std::string const &clientId, std::string const &clientSecret, ClientSecretCredentialOptions const &options)
 Constructs a Client Secret Credential. More...
 
 ClientSecretCredential (std::string tenantId, std::string const &clientId, std::string const &clientSecret, Core::Credentials::TokenCredentialOptions const &options=Core::Credentials::TokenCredentialOptions())
 Constructs a Client Secret Credential. More...
 
 ~ClientSecretCredential () override
 Destructs ClientSecretCredential.
 
Core::Credentials::AccessToken GetToken (Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override
 Gets an authentication token. More...
 

◆ ClientSecretCredential() [1/2]

ClientSecretCredential::ClientSecretCredential(std::string tenantId,
std::string const & clientId,
std::string const & clientSecret,
ClientSecretCredentialOptions const & options 
)
explicit
Parameters
tenantIdTenant ID.
clientIdClient ID.
clientSecretClient secret.
optionsOptions for token retrieval.

◆ ClientSecretCredential() [2/2]

ClientSecretCredential::ClientSecretCredential(std::string tenantId,
std::string const & clientId,
std::string const & clientSecret,
Core::Credentials::TokenCredentialOptions const & options = Core::Credentials::TokenCredentialOptions() 
)
explicit
Parameters
tenantIdTenant ID.
clientIdClient ID.
clientSecretClient Secret.
optionsOptions for token retrieval.
AccessToken ClientSecretCredential::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.
ReturnsAuthentication token. Exceptions
Azure::Core::Credentials::AuthenticationExceptionAuthentication error occurred.
The documentation for this class was generated from the following files:

ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnplom6ClfKLG1KucZqGUmru1tdOyZmpmZWN9bq7ErZhnal%2BYuaK%2F0piYs62imqxyq5CYoJ2dnqm2tcW%2BapZql5Ohtqa605iqnpuimsGgr9Gem56mpJ6urXrHraSl