#include <CBLAuthDelegate.h>
|
static std::shared_ptr< AuthDelegateInterface > | createAuthDelegateInterface (const std::shared_ptr< avsCommon::utils::configuration::ConfigurationNode > &configuration, const std::shared_ptr< registrationManager::CustomerDataManagerInterface > &customerDataManager, const std::shared_ptr< CBLAuthDelegateStorageInterface > &storage, const std::shared_ptr< CBLAuthRequesterInterface > &authRequester, std::unique_ptr< avsCommon::utils::libcurlUtils::HttpPostInterface > httpPost, const std::shared_ptr< avsCommon::utils::DeviceInfo > &deviceInfo) |
|
static std::unique_ptr< CBLAuthDelegate > | create (const avsCommon::utils::configuration::ConfigurationNode &configuration, std::shared_ptr< registrationManager::CustomerDataManagerInterface > customerDataManager, std::shared_ptr< CBLAuthDelegateStorageInterface > storage, std::shared_ptr< CBLAuthRequesterInterface > authRequester, std::shared_ptr< avsCommon::utils::libcurlUtils::HttpPostInterface > httpPost=nullptr, std::shared_ptr< avsCommon::utils::DeviceInfo > deviceInfo=nullptr) |
|
CBLAuthDelegate provides an implementation of the AuthDelegateInterface
using the Code-Based Linking authorization process.
- See also
- https://developer.amazon.com/en-US/docs/alexa/alexa-voice-service/authorize-cbl.html
◆ CBLAuthDelegate()
alexaClientSDK::authorization::cblAuthDelegate::CBLAuthDelegate::CBLAuthDelegate |
( |
const CBLAuthDelegate & |
rhs | ) |
|
|
delete |
Deleted copy constructor
- Parameters
-
rhs | The 'right hand side' to not copy. |
◆ ~CBLAuthDelegate()
alexaClientSDK::authorization::cblAuthDelegate::CBLAuthDelegate::~CBLAuthDelegate |
( |
| ) |
|
◆ addAuthObserver()
◆ clearData()
void alexaClientSDK::authorization::cblAuthDelegate::CBLAuthDelegate::clearData |
( |
| ) |
|
|
overridevirtual |
Reset any internal state that may be associated with a particular user.
- Warning
- Object must succeed in deleting any customer data.
-
This method is called while CustomerDataManager is in a locked state. Do not call or wait for any CustomerDataManager operation.
Implements alexaClientSDK::registrationManager::CustomerDataHandlerInterface.
◆ create()
Create a CBLAuthDelegate. This function cannot be called if:
-
AlexaClientSDKInit::initialize has not been called yet.
-
After AlexaClientSDKInit::un-initialize has been called.
- Deprecated:
- Parameters
-
configuration | The ConfigurationNode containing the configuration parameters for the new instance. |
customerDataManager | The CustomerDataManager instance this instance should register with. |
storage | The object used to persist the new CBLAuthDelegate's state. |
authRequester | Observer used to tell the user to browse to a URL and enter a 'user code'. |
httpPost | Instance that implements HttpPostInterface. If nullptr, a default implementation. |
deviceInfo | The deviceInfo instance. will be provided. |
- Returns
- A new instance of CBLAuthDelegate.
◆ createAuthDelegateInterface()
Create an instance of AuthDelegateInterface This function cannot be called if:
-
AlexaClientSDKInit::initialize has not been called yet.
-
After AlexaClientSDKInit::un-initialize has been called.
- Parameters
-
configuration | The ConfigurationNode containing the configuration parameters for the new instance. |
customerDataManager | The CustomerDataManager instance this instance should register with. |
storage | The object used to persist the new CBLAuthDelegate's state. |
authRequester | Observer used to tell the user to browse to a URL and enter a 'user code'. |
httpPost | Instance that implements HttpPostInterface. If nullptr, a default implementation. |
deviceInfo | The deviceInfo instance. will be provided. |
- Returns
- A new instance of CBLAuthDelegate.
◆ getAuthToken()
std::string alexaClientSDK::authorization::cblAuthDelegate::CBLAuthDelegate::getAuthToken |
( |
| ) |
|
|
overridevirtual |
◆ onAuthFailure()
void alexaClientSDK::authorization::cblAuthDelegate::CBLAuthDelegate::onAuthFailure |
( |
const std::string & |
token | ) |
|
|
overridevirtual |
◆ operator=()
Deleted assignment operator
- Parameters
-
rhs | The 'right hand side' to not copy. |
◆ removeAuthObserver()
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/SampleApplications/Common/Authorization/CBLAuthDelegate/include/CBLAuthDelegate/CBLAuthDelegate.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0