Client Secret Credential authenticates with the Azure services using a Tenant ID, Client ID and a client secret.
#include <managed_identity_credential.hpp>
|
| ~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...
|
|
◆ ManagedIdentityCredential() [1/2]
ManagedIdentityCredential::ManagedIdentityCredential |
( |
std::string const & |
clientId = std::string() , |
|
|
Azure::Core::Credentials::TokenCredentialOptions const & |
options = Azure::Core::Credentials::TokenCredentialOptions() |
|
) |
| |
|
explicit |
- Parameters
-
clientId | Client ID. |
options | Options for token retrieval. |
◆ ManagedIdentityCredential() [2/2]
ManagedIdentityCredential::ManagedIdentityCredential |
( |
Azure::Core::Credentials::TokenCredentialOptions const & |
options | ) |
|
|
explicit |
- Parameters
-
options | Options for token retrieval. |
◆ GetToken()
Azure::Core::Credentials::AccessToken ManagedIdentityCredential::GetToken |
( |
Core::Credentials::TokenRequestContext const & |
tokenRequestContext, |
|
|
Core::Context const & |
context |
|
) |
| const |
|
override |
- Parameters
-
tokenRequestContext | A context to get the token in. |
context | A context to control the request lifetime. |
- Returns
- Authentication token.
- Exceptions
-
Azure::Core::Credentials::AuthenticationException | Authentication error occurred. |
The documentation for this class was generated from the following files: