rublon-ssh/PAM/ssh/include/rublon/method/OTP.hpp
rublon-bwi 6a3882fa47
Bwi/v2.0.2 rc1 (#10)
* 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

* ad static string ctor

* Addded postrm script

* Rename 01_rublon_ssh.conf to 01-rublon-ssh.conf

* restart sshd service after rublon package instalation

* Fix sshd not restarting bug on ubuntu 24.04

* disable logging from websocket-io

* change package name to match old package name

* Fix compilation issue when using non owning ptr

* Set version to 2.0.0
2024-06-17 08:57:26 +02:00

28 lines
652 B
C++
Executable File

#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, int prompts)
: PasscodeBasedAuth(std::move(systemToken),
std::move(tid),
"",
"Mobile Passcode",
"Enter the passcode from the Authenticator app: ",
6,
true,
PasscodeBasedAuth::Endpoint::ConfirmCode,
prompts) {}
};
} // namespace rublon::method