10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
CCGClientFactory.h
1#ifndef TENDUKE_EE_CCGCLIENTFACTORY_H
2#define TENDUKE_EE_CCGCLIENTFACTORY_H
3
4#include "./AbstractClientFactory.h"
5#include "oidc/ccg/CCGAuthenticationConfig.h"
6
7namespace tenduke { namespace ee {
8
20class CCGClientFactory : public ::tenduke::ee::AbstractClientFactory<::tenduke::oidc::ccg::CCGAuthenticationConfig>
21{
22public:
32 const std::string &clientId,
33 const ::tenduke::ServiceConfiguration &serviceConfiguration = ::tenduke::ServiceConfiguration()
34 );
35
42 CCGClientFactory(const ::tenduke::TendukeServices &services);
43
44protected:
45 std::shared_ptr<::tenduke::oidc::OIDCLogin> createOIDCLoginService(
46 const std::shared_ptr<const ::tenduke::oauth::OAuthConfiguration> &oauthConfiguration,
47 const std::shared_ptr<const ::tenduke::oidc::OIDCConfiguration> &oidcConfiguration,
48 const ::tenduke::oidc::ccg::CCGAuthenticationConfig &authenticationConfig
49 ) const override;
50 std::shared_ptr<::tenduke::oauth::OAuthConfiguration> mkOAuthConfiguration(
51 const ::tenduke::oauth::OAuthBackendConfiguration &oauthBackendConfiguration,
52 const ::tenduke::oidc::ccg::CCGAuthenticationConfig &authenticationConfig
53 ) const override;
54};
55
56}}
57
58#endif //TENDUKE_EE_CCGCLIENTFACTORY_H
Configuration for supporting services.
Definition ServiceConfiguration.h:12
Class template for factories, which create 10Duke client.
Definition AbstractClientFactory.h:26
Factory, which creates 10Duke Enterprise client, which authenticates user with OAuth Client Credentia...
Definition CCGClientFactory.h:21
std::shared_ptr<::tenduke::oauth::OAuthConfiguration > mkOAuthConfiguration(const ::tenduke::oauth::OAuthBackendConfiguration &oauthBackendConfiguration, const ::tenduke::oidc::ccg::CCGAuthenticationConfig &authenticationConfig) const override
Creates full OAuth-configuration.
Definition CCGClientFactory.cpp:17
std::shared_ptr<::tenduke::oidc::OIDCLogin > createOIDCLoginService(const std::shared_ptr< const ::tenduke::oauth::OAuthConfiguration > &oauthConfiguration, const std::shared_ptr< const ::tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const ::tenduke::oidc::ccg::CCGAuthenticationConfig &authenticationConfig) const override
Creates the authentication-specific OIDC login service.
Definition CCGClientFactory.cpp:31
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4