10Duke Enterprise C++ Client
|
#include <OAuthClientCredentialsGrantRequest.h>
OAuth Client Credentials Grant implementation of tenduke::oauth::OAuthRequest.
Public Member Functions | |
OAuthClientCredentialsGrantRequest (const std::map< std::string, std::string > &additionalParameters, const std::shared_ptr< const ::tenduke::oauth::OAuthConfiguration > &config, 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) | |
Constructs new instance. | |
std::unique_ptr<::tenduke::oauth::OAuthState > | accessTokenRequest () const |
Performs the access token request. | |
Protected Member Functions | |
std::map< std::string, std::string > | buildTokenRequestParameters () const override |
Builds base parameters for the token request. | |
Protected Member Functions inherited from tenduke::oauth::BaseOAuthRequest | |
BaseOAuthRequest (const std::string &scopes, const std::map< std::string, std::string > &additionalParameters, const std::shared_ptr< const ::tenduke::oauth::OAuthConfiguration > &config, const std::shared_ptr< const ::tenduke::http::HTTPClient > &http, const std::shared_ptr< const ::tenduke::json::JSONParser > &parseJson, const std::shared_ptr<::tenduke::time::Clock > &clock) | |
Constructs new instance. | |
virtual std::unique_ptr<::tenduke::oauth::OAuthTokenRequest > | createTokenRequest () const |
Creates the token request. | |
virtual std::unique_ptr<::tenduke::oauth::OAuthState > | handleTokenResponse (std::unique_ptr<::tenduke::oauth::OAuthTokenResponse > response) const |
Handles token response. | |
Additional Inherited Members | |
Protected Attributes inherited from tenduke::oauth::BaseOAuthRequest | |
const std::string | scopes |
const std::map< std::string, std::string > | additionalParameters |
const std::shared_ptr< const ::tenduke::oauth::OAuthConfiguration > | config |
const std::shared_ptr< const ::tenduke::http::HTTPClient > | http |
const std::shared_ptr< const ::tenduke::json::JSONParser > | parseJSON |
const std::shared_ptr<::tenduke::time::Clock > | clock |
tenduke::oauth::ccg::OAuthClientCredentialsGrantRequest::OAuthClientCredentialsGrantRequest | ( | const std::map< std::string, std::string > & | additionalParameters, |
const std::shared_ptr< const ::tenduke::oauth::OAuthConfiguration > & | config, | ||
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 | ||
) |
Constructs new instance.
additionalParameters | - |
config | - |
httpClient | - |
jsonParser | - |
clock | - |
std::unique_ptr<::OAuthState > tenduke::oauth::ccg::OAuthClientCredentialsGrantRequest::accessTokenRequest | ( | ) | const |
Performs the access token request.
|
overrideprotectedvirtual |
Builds base parameters for the token request.
This method adds following common request parameters:
Reimplemented from tenduke::oauth::BaseOAuthRequest.