|
10Duke Enterprise C++ SDK
|
#include <OAuthPKCEFlow.h>
OAuth Authorization Code Grant with PKCE implementation of tenduke::oauth::OAuthClient.
Public Member Functions | |
| OAuthPKCEFlow (std::shared_ptr< const tenduke::oauth::OAuthConfiguration > config, std::shared_ptr< const tenduke::http::HTTPClient > httpClient, std::shared_ptr< const ::tenduke::net::URLs > urls, std::shared_ptr< const tenduke::json::JSONParser > jsonParser, std::shared_ptr< const tenduke::utl::Base64Encoder > base64Encoder, std::shared_ptr< const tenduke::crypto::MessageDigestFactory > messageDigestFactory, std::shared_ptr< tenduke::time::Clock > clock, std::shared_ptr< tenduke::utl::random::RandomUrlSafeString > randomUrlSafeString) | |
| Constructs new instance. | |
| std::unique_ptr< const tenduke::oauth::OAuthBrowserAuthorizationRequest > | authorize (const std::string &scopes) const override |
| Creates OAuthRequest to start the OAuth-authorization flow. | |
| std::unique_ptr< const tenduke::oauth::OAuthBrowserAuthorizationRequest > | authorize (const std::string &scopes, const std::map< std::string, std::string > &additionalParameters) const override |
| Creates OAuthRequest to start the OAuth-authorization flow. | |
| 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. | |
Protected Member Functions | |
| std::string | generateState () const |
| Generates value for "state"-parameter. | |
| std::string | generateCodeVerifier () const |
| Generates PKCE code verifier. | |
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::pkce::OAuthPKCEFlow::OAuthPKCEFlow | ( | std::shared_ptr< const tenduke::oauth::OAuthConfiguration > | config, |
| std::shared_ptr< const tenduke::http::HTTPClient > | httpClient, | ||
| std::shared_ptr< const ::tenduke::net::URLs > | urls, | ||
| std::shared_ptr< const tenduke::json::JSONParser > | jsonParser, | ||
| std::shared_ptr< const tenduke::utl::Base64Encoder > | base64Encoder, | ||
| std::shared_ptr< const tenduke::crypto::MessageDigestFactory > | messageDigestFactory, | ||
| std::shared_ptr< tenduke::time::Clock > | clock, | ||
| std::shared_ptr< tenduke::utl::random::RandomUrlSafeString > | randomUrlSafeString ) |
Constructs new instance.
| config | - |
| httpClient | - |
| urls | - |
| jsonParser | - |
| base64Encoder | - |
| messageDigestFactory | - |
| clock | - |
| randomUrlSafeString | - |
|
overridevirtual |
Creates OAuthRequest to start the OAuth-authorization flow.
| scopes | scopes to authorize |
Implements tenduke::oauth::OAuthBrowserFlow.
|
overridevirtual |
Creates OAuthRequest to start the OAuth-authorization flow.
| scopes | scopes to authorize |
| additionalParameters | additional parameters for the request |
Implements tenduke::oauth::OAuthBrowserFlow.
|
protected |
Generates PKCE code verifier.
|
protected |
Generates value for "state"-parameter.