| 
    10Duke Enterprise C++ Client
    
   | 
 
#include <OAuthBrowserFlow.h>
OAuth-client to initiate OAuth authorization flow.
The client creates an OAuthRequest, which handles the flow.
IMPORTANT NOTE: There is no browser integration provided, the implementors must bring their own browser. This is intentional to prevent large browser-dependency if the implementor wants to use another browser.
The OAuth-service works both with embedded browser and OS-browser. With embedded browser:
Steps for OS-browser are similar, but OS-specific. In many cases application can register custom URL-scheme to the OS and use OS-calls to open the browser and navigate.
  
Public Member Functions | |
| virtual std::unique_ptr< const tenduke::oauth::OAuthBrowserAuthorizationRequest > | authorize (const std::string &scopes) const=0 | 
| Creates OAuthRequest to start the OAuth-authorization flow.   | |
| virtual std::unique_ptr< const tenduke::oauth::OAuthBrowserAuthorizationRequest > | authorize (const std::string &scopes, const std::map< std::string, std::string > &additionalParameters) const=0 | 
| Creates OAuthRequest to start the OAuth-authorization flow.   | |
  Public Member Functions inherited from tenduke::oauth::OAuthClient | |
| 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 OAuthRequest to start the OAuth-authorization flow.
| scopes | scopes to authorize | 
      
  | 
  pure virtual | 
Creates OAuthRequest to start the OAuth-authorization flow.
| scopes | scopes to authorize | 
| additionalParameters | additional parameters for the request |