1#ifndef TENDUKE_OIDC_OIDCSESSIONCONFIGURATION_H
2#define TENDUKE_OIDC_OIDCSESSIONCONFIGURATION_H
4#include "./OIDCSessionEventListener.h"
10namespace tenduke {
namespace oidc {
62 concurrencyTimeout = timeout;
73 loginTimeout = timeout;
84 sessionEventListener = listener;
102 std::chrono::seconds concurrencyTimeout;
103 std::chrono::seconds loginTimeout;
104 std::shared_ptr<::tenduke::oidc::OIDCSessionEventListener> sessionEventListener;
Builder for the configuration.
Definition OIDCSessionConfiguration.h:53
Builder & listenEventsWith(const std::shared_ptr<::tenduke::oidc::OIDCSessionEventListener > &listener)
Sets session event listener.
Definition OIDCSessionConfiguration.h:82
Builder & timeoutConcurrentActionsAfter(const std::chrono::seconds &timeout)
Sets the timeout for concurrent actions.
Definition OIDCSessionConfiguration.h:60
Builder & timeoutLoginAfter(const std::chrono::seconds &timeout)
Sets the timeout for login.
Definition OIDCSessionConfiguration.h:71
OIDCSessionConfiguration build()
Builds the configuration.
Definition OIDCSessionConfiguration.h:92
Configuration for tenduke::oidc::OIDCSessionImpl.
Definition OIDCSessionConfiguration.h:16
const std::chrono::seconds concurrencyTimeout
Timeout for concurrent actions of the OIDC session service.
Definition OIDCSessionConfiguration.h:45
OIDCSessionConfiguration(const std::chrono::seconds &loginTimeout, const std::chrono::seconds &concurrencyTimeout, const std::shared_ptr<::tenduke::oidc::OIDCSessionEventListener > &sessionEventListener)
Constructs new instance.
Definition OIDCSessionConfiguration.h:33
const std::chrono::seconds loginTimeout
Login timeout.
Definition OIDCSessionConfiguration.h:43
const std::shared_ptr<::tenduke::oidc::OIDCSessionEventListener > sessionEventListener
Listener for session events.
Definition OIDCSessionConfiguration.h:47
OIDCSessionConfiguration()
No-arg constructs new instance with default values.
Definition OIDCSessionConfiguration.h:21
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4