20 lines
479 B
C++
20 lines
479 B
C++
#pragma once
|
|
|
|
#include <tl/expected.hpp>
|
|
|
|
#include <rublon/authentication_step_interface.hpp>
|
|
#include <rublon/pam.hpp>
|
|
#include <rublon/pam_action.hpp>
|
|
|
|
#include <rublon/method/passcode_based_auth.hpp>
|
|
|
|
namespace rublon::method {
|
|
|
|
class OTP:public PasscodeBasedAuth{
|
|
public:
|
|
OTP(std::string systemToken, std::string tid) : PasscodeBasedAuth(std::move(systemToken), std::move(tid), "OTP", "Mobile TOTP from Rublon Authenticator:") {}
|
|
|
|
};
|
|
|
|
} // namespace rublon::method
|