20 lines
470 B
C++
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
|