10Duke Scale C++ Client
Loading...
Searching...
No Matches
ROPGAuthenticatingClientFactory.h
1#ifndef TENDUKE_SE_ROPGAUTHENTICATINGCLIENTFACTORY_H
2#define TENDUKE_SE_ROPGAUTHENTICATINGCLIENTFACTORY_H
3
4#include "./AbstractClientFactory.h"
5#include "oidc/ropg/ROPGAuthenticationConfig.h"
6
7namespace tenduke { namespace se {
8
9class ROPGAuthenticatingClientFactory : public ::tenduke::se::AbstractClientFactory<::tenduke::oidc::ropg::ROPGAuthenticationConfig>
10{
11public:
12 explicit ROPGAuthenticatingClientFactory(
13 const std::string &clientId,
14 const ::tenduke::ServiceConfiguration &serviceConfiguration = ::tenduke::ServiceConfiguration()
16 {
17 }
18
19 explicit ROPGAuthenticatingClientFactory(const ::tenduke::TendukeServices &services)
21 {
22 }
23
24protected:
25 OIDCServices createOIDCLoginService(
26 const std::shared_ptr<const ::tenduke::oauth::OAuthConfiguration> &oauthConfiguration,
27 const std::shared_ptr<const ::tenduke::oidc::OIDCConfiguration> &oidcConfiguration,
28 const ::tenduke::oidc::ropg::ROPGAuthenticationConfig &authenticationConfiguration
29 ) const override;
30
31 std::shared_ptr<::tenduke::oauth::OAuthConfiguration> mkOAuthConfiguration(
32 const ::tenduke::oauth::OAuthBackendConfiguration &oauthBackendConfiguration,
33 const ::tenduke::oidc::ropg::ROPGAuthenticationConfig &authenticationConfiguration
34 ) const override;
35
36 bool canUseState(const ::tenduke::se::ClientState &state) const override;
37};
38
39}}
40
41
42#endif //TENDUKE_SE_ROPGAUTHENTICATINGCLIENTFACTORY_H
AbstractClientFactory(const std::string &clientId, const ::tenduke::ServiceConfiguration &serviceConfiguration)
Definition AbstractClientFactory.h:37
Class template for factories, which create 10Duke Scale client.
Definition AbstractClientFactory.h:25
bool canUseState(const ::tenduke::se::ClientState &state) const override
Checks if stored state can be used and autodiscovery skipped.
Definition ROPGAuthenticatingClientFactory.cpp:66
std::shared_ptr<::tenduke::oauth::OAuthConfiguration > mkOAuthConfiguration(const ::tenduke::oauth::OAuthBackendConfiguration &oauthBackendConfiguration, const ::tenduke::oidc::ropg::ROPGAuthenticationConfig &authenticationConfiguration) const override
Creates full OAuth-configuration.
Definition ROPGAuthenticatingClientFactory.cpp:23
Classes, functions and globals of 10Duke Scale C++ Client.
Definition AbstractClientFactory.h:16
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16