10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
OAuthConfiguration.h
1#ifndef TENDUKE_OAUTH_OAUTHCONFIGURATION_H
2#define TENDUKE_OAUTH_OAUTHCONFIGURATION_H
3
4#include "./OAuthBackendConfiguration.h"
5#include "./OAuthClientConfiguration.h"
6
7#include <memory>
8#include <string>
9
10namespace tenduke { namespace oauth {
11
12
17{
18public:
30 std::string authorizationEndpointUrl,
31 std::string tokenEndpointUrl,
32 std::string clientId,
33 std::string clientSecret,
34 std::string redirectURI,
36 const std::string &deviceAuthorizationEndpointUrl = ""
38 OAuthClientConfiguration(std::move(clientId), std::move(clientSecret), std::move(redirectURI), flow)
39 {}
40
47 const OAuthBackendConfiguration &backendConfiguration,
48 const OAuthClientConfiguration &clientConfiguration
49 ) : OAuthBackendConfiguration(backendConfiguration),
50 OAuthClientConfiguration(clientConfiguration)
51 {}
52
53};
54
55
56}}
57
58#endif // TENDUKE_OAUTH_OAUTHCONFIGURATION_H
Container for OAuth-backend configuration.
Definition OAuthBackendConfiguration.h:17
const std::string tokenEndpointUrl
URL for the OAuth 2 token endpoint.
Definition OAuthBackendConfiguration.h:41
const std::string deviceAuthorizationEndpointUrl
URL for the OAuth 2 device authorization endpoint.
Definition OAuthBackendConfiguration.h:38
const std::string authorizationEndpointUrl
URL for the OAuth 2 authorization endpoint.
Definition OAuthBackendConfiguration.h:35
Container for OAuth-client-configuration.
Definition OAuthClientConfiguration.h:17
enum OAuthFlow flow
The flow.
Definition OAuthClientConfiguration.h:55
const std::string clientSecret
(Optional) OAuth 2 client secret, configured also in the server.
Definition OAuthClientConfiguration.h:50
const std::string clientId
OAuth 2 client id, configured also in the server.
Definition OAuthClientConfiguration.h:48
const std::string redirectURI
OAuth2 redirect-URI for browser-based based authentication.
Definition OAuthClientConfiguration.h:52
OAuthFlow
Type of the OAuth flow.
Definition OAuthClientConfiguration.h:22
Container for OAuth-configuration.
Definition OAuthConfiguration.h:17
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.
Definition OAuthConfiguration.h:29
OAuthConfiguration(const OAuthBackendConfiguration &backendConfiguration, const OAuthClientConfiguration &clientConfiguration)
Constructs new instance.
Definition OAuthConfiguration.h:46
OAuth services.
Definition AccessTokenRequestAuthenticator.h:8
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7