10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
OAuthClientCredentialsGrantRequest.h
1#ifndef TENDUKE_OAUTH_CCG_OAUTHCLIENTCREDENTIALSGRANTREQUEST_H
2#define TENDUKE_OAUTH_CCG_OAUTHCLIENTCREDENTIALSGRANTREQUEST_H
3
4#include "../BaseOAuthRequest.h"
5
6
7namespace tenduke { namespace oauth { namespace ccg {
8
9
14{
15public:
25 const std::map<std::string, std::string> &additionalParameters,
26 const std::shared_ptr<const ::tenduke::oauth::OAuthConfiguration> &config,
27 const std::shared_ptr<const ::tenduke::http::HTTPClient> &httpClient,
28 const std::shared_ptr<const ::tenduke::json::JSONParser> &jsonParser,
29 const std::shared_ptr<::tenduke::time::Clock> &clock
30 );
31
36 std::unique_ptr<::tenduke::oauth::OAuthState> accessTokenRequest() const;
37
38protected:
39 std::map<std::string, std::string> buildTokenRequestParameters() const override;
40};
41
42
43}}}
44
45#endif // TENDUKE_OAUTH_CCG_OAUTHCLIENTCREDENTIALSGRANTREQUEST_H
Base OAuthRequest.
Definition BaseOAuthRequest.h:23
OAuth Client Credentials Grant implementation of tenduke::oauth::OAuthRequest.
Definition OAuthClientCredentialsGrantRequest.h:14
std::unique_ptr<::tenduke::oauth::OAuthState > accessTokenRequest() const
Performs the access token request.
Definition OAuthClientCredentialsGrantRequest.cpp:22
std::map< std::string, std::string > buildTokenRequestParameters() const override
Builds base parameters for the token request.
Definition OAuthClientCredentialsGrantRequest.cpp:29
OAuth services.
Definition AccessTokenRequestAuthenticator.h:8
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4