10Duke Enterprise C++ Client
|
#include <OAuthClient.h>
OAuth-client to initiate OAuth authorization flow.
This is base interface for different types OAuth clients. The two main branches are browser-based clients (tenduke::oauth::OAuthBrowserFlow
) and device-authentication client (tenduke::oauth::device::OAuthDeviceFlow
).
Public Member Functions | |
virtual std::unique_ptr< const tenduke::oauth::OAuthRefreshRequest > | refresh (std::shared_ptr< tenduke::oauth::OAuthState > state) const =0 |
Creates OAuthRefreshRequest for refreshing the state. | |
|
pure virtual |
Creates OAuthRefreshRequest for refreshing the state.
After executing the request, assign the returned state back to the original state to get refresh results.
state | the state to refresh |
tenduke::oauth::OAuthException | if the state is not refreshable. |
Implemented in tenduke::oauth::BaseOAuthClient.