27 lines
587 B
C++
Executable File
27 lines
587 B
C++
Executable File
#pragma once
|
|
|
|
#include <tl/expected.hpp>
|
|
|
|
#include <rublon/authentication_step_interface.hpp>
|
|
#include <rublon/pam_action.hpp>
|
|
|
|
#include <rublon/method/passcode_based_auth.hpp>
|
|
|
|
namespace rublon::method {
|
|
|
|
class SMS : public PasscodeBasedAuth {
|
|
public:
|
|
SMS(std::string systemToken, std::string tid, int prompts)
|
|
: PasscodeBasedAuth(std::move(systemToken),
|
|
std::move(tid),
|
|
"",
|
|
"SMS",
|
|
"Enter SMS passcode: ",
|
|
6,
|
|
true,
|
|
PasscodeBasedAuth::Endpoint::ConfirmCode,
|
|
prompts) {}
|
|
};
|
|
|
|
} // namespace rublon::method
|