rublon-ssh/PAM/ssh/include/rublon/authentication_step_interface.hpp
2023-07-21 14:41:20 +02:00

20 lines
470 B
C++

#pragma once
#include <rublon/core_handler_interface.hpp>
#include <rublon/utils.hpp>
namespace rublon {
template < typename Impl >
class AuthenticationStep {
public:
template < typename Handler_t >
auto fire(const CoreHandlerInterface< Handler_t > & coreHandler) {
// log step
log(Info, "Starting %s step", static_cast< Impl * >(this)->name);
return static_cast< Impl * >(this)->handle(coreHandler);
}
};
} // namespace rublon