10Duke Enterprise C++ Client
|
#include <OAuthClientConfiguration.h>
Container for OAuth-client-configuration.
This describes the OAuth-client.
Classes | |
class | Builder |
Builder for the configuration. More... | |
Public Types | |
enum | OAuthFlow { UNKNOWN , PKCE , DEVICE , ROPG , CCG } |
Type of the OAuth flow. | |
Public Member Functions | |
OAuthClientConfiguration (std::string clientId, std::string clientSecret, std::string redirectURI, const enum OAuthFlow flow) | |
Constructs new instance. | |
Static Public Member Functions | |
static std::string | flowToString (const enum OAuthFlow flow) |
Converts the flow to a string representation. | |
static enum OAuthFlow | stringToFlow (const std::string &string) |
Parses string representation of a flow. | |
static Builder | forPKCEFlow () |
Starts building configuration for PKCE-flow. | |
Public Attributes | |
const std::string | clientId |
OAuth 2 client id, configured also in the server. | |
const std::string | clientSecret |
(Optional) OAuth 2 client secret, configured also in the server. | |
const std::string | redirectURI |
OAuth2 redirect-URI for browser-based based authentication. | |
enum OAuthFlow | flow |
The flow. | |
|
inline |
Constructs new instance.
clientId | |
clientSecret | |
redirectURI | |
flow |
|
inlinestatic |
Converts the flow to a string representation.
flow | - |
|
inlinestatic |
Starts building configuration for PKCE-flow.
|
inlinestatic |
Parses string representation of a flow.
string | - |
const std::string tenduke::oauth::OAuthClientConfiguration::redirectURI |
OAuth2 redirect-URI for browser-based based authentication.
Also configured in the server.