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.
#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()
- Parameters
-
sources | The ordered chain of Azure::Core::Credentials::TokenCredential implementations to try when calling GetToken(). |
◆ 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: