|
10Duke Enterprise C++ Client
|
#include <DefaultOAuthDeviceFlow.h>
Default implementation of tenduke::oauth::device::OAuthDeviceFlow.
Public Member Functions | |
| DefaultOAuthDeviceFlow (const std::shared_ptr< const tenduke::oauth::OAuthConfiguration > &oauthConfiguration, const std::shared_ptr< const tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser, const std::shared_ptr< tenduke::time::Clock > &clock, std::uint64_t defaultClientTimeoutS=tenduke::oauth::device::DEVICEFLOW_DOES_NOT_TIMEOUT) | |
| Constructs new instance. | |
| std::unique_ptr< tenduke::oauth::device::OAuthDeviceFlowAuthorizationRequest > | authorize (const std::string &scope, const std::map< std::string, std::string > &additionalParameters) const override |
| Starts authorization. | |
Public Member Functions inherited from tenduke::oauth::BaseOAuthClient | |
| BaseOAuthClient (std::shared_ptr< const tenduke::oauth::OAuthConfiguration > config, std::shared_ptr< const tenduke::http::HTTPClient > httpClient, std::shared_ptr< const tenduke::json::JSONParser > jsonParser, std::shared_ptr< tenduke::time::Clock > clock) | |
| Constructs new instance. | |
| std::shared_ptr< const OAuthConfiguration > | getConfiguration () const |
| Returns the configuration of this client. | |
| std::unique_ptr< const tenduke::oauth::OAuthRefreshRequest > | refresh (std::shared_ptr< tenduke::oauth::OAuthState > state) const override |
| Creates OAuthRefreshRequest for refreshing the state. | |
Additional Inherited Members | |
Protected Attributes inherited from tenduke::oauth::BaseOAuthClient | |
| const std::shared_ptr< const OAuthConfiguration > | config |
| OAuth configuration. | |
| const std::shared_ptr< const tenduke::http::HTTPClient > | httpClient |
| HTTP client. | |
| const std::shared_ptr< const tenduke::json::JSONParser > | jsonParser |
| For parsing responses. | |
| const std::shared_ptr< tenduke::time::Clock > | clock |
| Clock to generate "expires-at" from "expires-in". | |
| tenduke::oauth::device::DefaultOAuthDeviceFlow::DefaultOAuthDeviceFlow | ( | const std::shared_ptr< const tenduke::oauth::OAuthConfiguration > & | oauthConfiguration, |
| const std::shared_ptr< const tenduke::http::HTTPClient > & | httpClient, | ||
| const std::shared_ptr< const tenduke::json::JSONParser > & | jsonParser, | ||
| const std::shared_ptr< tenduke::time::Clock > & | clock, | ||
| std::uint64_t | defaultClientTimeoutS = tenduke::oauth::device::DEVICEFLOW_DOES_NOT_TIMEOUT ) |
Constructs new instance.
| oauthConfiguration | |
| httpClient | |
| jsonParser | |
| clock | |
| defaultClientTimeoutS | authorization request timeout at client end: Authorization requests taking longer than this will throw exception. By default the authorization requests do not time out. |
|
overridevirtual |
Starts authorization.
| scope | - |
| additionalParameters | - |
Implements tenduke::oauth::device::OAuthDeviceFlow.