Container for OAuth-configuration.
|
| | OAuthConfiguration (std::string authorizationEndpointUrl, std::string tokenEndpointUrl, std::string clientId, std::string clientSecret, std::string redirectURI, const enum tenduke::oauth::OAuthClientConfiguration::OAuthFlow flow, const std::string &deviceAuthorizationEndpointUrl="") |
| | Constructs new instance.
|
| | OAuthConfiguration (const OAuthBackendConfiguration &backendConfiguration, const OAuthClientConfiguration &clientConfiguration) |
| | Constructs new instance.
|
| | OAuthBackendConfiguration (std::string authorizationEndpointUrl, std::string tokenEndpointUrl, std::string deviceAuthorizationEndpointUrl="") |
| | Constructs new instance.
|
| | OAuthClientConfiguration (std::string clientId, std::string clientSecret, std::string redirectURI, const enum OAuthFlow flow) |
| | Constructs new instance.
|
|
| enum | OAuthFlow {
UNKNOWN
, PKCE
, DEVICE
, ROPG
,
CCG
} |
| | Type of the OAuth flow.
|
| 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.
|
|
const std::string | authorizationEndpointUrl |
| | URL for the OAuth 2 authorization endpoint.
|
|
const std::string | deviceAuthorizationEndpointUrl |
| | URL for the OAuth 2 device authorization endpoint.
|
|
const std::string | tokenEndpointUrl |
| | URL for the OAuth 2 token endpoint.
|
|
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.
|