10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
ROPGClientFactory.h
1#ifndef TENDUKE_EE_ROPGCLIENTFACTORY_H
2#define TENDUKE_EE_ROPGCLIENTFACTORY_H
3
4#include "./AbstractClientFactory.h"
5#include "oidc/ropg/ROPGAuthenticationConfig.h"
6
7namespace tenduke { namespace ee {
8
22class ROPGClientFactory : public ::tenduke::ee::AbstractClientFactory<::tenduke::oidc::ropg::ROPGAuthenticationConfig>
23{
24public:
34 const std::string &clientId,
35 const ::tenduke::ServiceConfiguration &serviceConfiguration = ::tenduke::ServiceConfiguration()
36 );
37
44 ROPGClientFactory(const ::tenduke::TendukeServices &services);
45
46protected:
47 std::shared_ptr<::tenduke::oidc::OIDCLogin> createOIDCLoginService(
48 const std::shared_ptr<const ::tenduke::oauth::OAuthConfiguration> &oauthConfiguration,
49 const std::shared_ptr<const ::tenduke::oidc::OIDCConfiguration> &oidcConfiguration,
50 const ::tenduke::oidc::ropg::ROPGAuthenticationConfig &authenticationConfig
51 ) const override;
52 std::shared_ptr<::tenduke::oauth::OAuthConfiguration> mkOAuthConfiguration(
53 const ::tenduke::oauth::OAuthBackendConfiguration &oauthBackendConfiguration,
54 const ::tenduke::oidc::ropg::ROPGAuthenticationConfig &authenticationConfig
55 ) const override;
56};
57
58}}
59
60#endif //TENDUKE_EE_ROPGCLIENTFACTORY_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 Resource Owner P...
Definition ROPGClientFactory.h:23
std::shared_ptr<::tenduke::oauth::OAuthConfiguration > mkOAuthConfiguration(const ::tenduke::oauth::OAuthBackendConfiguration &oauthBackendConfiguration, const ::tenduke::oidc::ropg::ROPGAuthenticationConfig &authenticationConfig) const override
Creates full OAuth-configuration.
Definition ROPGClientFactory.cpp:18
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::ropg::ROPGAuthenticationConfig &authenticationConfig) const override
Creates the authentication-specific OIDC login service.
Definition ROPGClientFactory.cpp:32
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4