* Remove unused options from rublon default config * Remove safe|secure options * Allow 9 digits long passcode for passcode bypass * Change name of 'Mobile Passcode' to 'Passcode' * Do not display any prompt when user is waiting * remove unused alloca.h header * Add autopushPrompt option * Change name OTP method * Change enrolement message handling * add static string ctor * Addded postrm script * [bugfix] Restart sshd service after rublon package instalation * Rename 01_rublon_ssh.conf to 01-rublon-ssh.conf * Prepared scripts for generating rpm for alma nad rocky * Adding public key authentication option * Add postinst script and ssh configuration for using pubkey * Add GCC 7 compatybility * Cleanup includes, cleanup std::array usage * Add Static String implementation * Remove memory_resources * Add monotonic_buffer_resource in experimental c++ imlpementation * Use case insensitive map * Remove not needed code
41 lines
926 B
C++
41 lines
926 B
C++
#pragma once
|
|
|
|
#include <rublon/bits.hpp>
|
|
#include <rublon/configuration.hpp>
|
|
|
|
namespace rublon {
|
|
|
|
class Session {
|
|
const Pam_t & _pam;
|
|
const Configuration _config;
|
|
|
|
CoreHandler_t _coreHandler;
|
|
/// TODO log
|
|
/// TODO momory resource
|
|
public:
|
|
Session(const Pam_t & pam, const Configuration &config) : _pam{pam}, _config{config}, _coreHandler{_config} {
|
|
log(LogLevel::Debug, __PRETTY_FUNCTION__);
|
|
}
|
|
|
|
const auto & coreHandler() const {
|
|
return _coreHandler;
|
|
}
|
|
const auto & pam() const {
|
|
return _pam;
|
|
}
|
|
const auto & config() const {
|
|
return _config;
|
|
}
|
|
};
|
|
|
|
// template < typename Session_t >
|
|
// class TransactionBase {
|
|
// public:
|
|
// const Session_t & _session;
|
|
// std::string _tid;
|
|
|
|
// TransactionBase(const Session_t & session, std::string_view tid) : _session{session}, _tid{tid.data(), tid.size()} {}
|
|
// };
|
|
|
|
} // namespace rublon
|