Chained Token Credential provides a token credential implementation which chains multiple Azure::Core::Credentials::TokenCredential implementations to be tried in order until one of the GetToken() methods returns an access token.
More...
#include <chained_token_credential.hpp>
|
| using | Sources = std::vector< std::shared_ptr< Core::Credentials::TokenCredential > > |
| | A container type to store the ordered chain of credentials.
|
| |
|
| | ChainedTokenCredential (Sources sources) |
| | Constructs a Chained Token Credential.
|
| |
| | ~ChainedTokenCredential () override |
| | Destructs ChainedTokenCredential.
|
| |
| Core::Credentials::AccessToken | GetToken (Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override |
| | Gets an authentication token.
|
| |
◆ Sources
◆ ChainedTokenCredential()
- Parameters
-
| sources | The ordered chain of Azure::Core::Credentials::TokenCredential implementations to try when calling GetToken(). |
◆ ~ChainedTokenCredential()
| ChainedTokenCredential::~ChainedTokenCredential |
( |
| ) |
|
|
overridedefault |
◆ GetToken()
| AccessToken ChainedTokenCredential::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. |
- Exceptions
-
| Azure::Core::Credentials::AuthenticationException | Authentication error occurred. |
The documentation for this class was generated from the following files: