Public Member Functions | |
__construct ($configuration) | |
getUser ($username) | |
createUser ($username, $mobileNumber) | |
preAuthenticate ($username) | |
authenticate ($username, $otp) | |
Protected Attributes | |
$internalAuthenticator | |
$userStorage | |
$auditor | |
ESET\SecureAuthentication\SDK\TwoFactorAuthenticator::__construct | ( | $configuration | ) |
Create a new TwoFactorAuthenticator object
TwoFactorConfiguration | $configuration |
ESET\SecureAuthentication\SDK\TwoFactorAuthenticator::authenticate | ( | $username, | |
$otp | |||
) |
Authenticate a user
string | $username | Username |
string | $otp | OTP |
Implements ESET\SecureAuthentication\SDK\ITwoFactorAuthenticator.
ESET\SecureAuthentication\SDK\TwoFactorAuthenticator::createUser | ( | $username, | |
$mobileNumber | |||
) |
Create a new two-factor user account
string | $username | Username |
string | $mobileNumber | User's mobile number |
Implements ESET\SecureAuthentication\SDK\ITwoFactorAuthenticator.
ESET\SecureAuthentication\SDK\TwoFactorAuthenticator::getUser | ( | $username | ) |
Retrieve a two-factor user account
string | $username | Username |
Implements ESET\SecureAuthentication\SDK\ITwoFactorAuthenticator.
ESET\SecureAuthentication\SDK\TwoFactorAuthenticator::preAuthenticate | ( | $username | ) |
Prepare a user for authentication
All necessary preparations are made for user authentication. For instance, if a user is enabled for text message OTPs, a new OTP will be generated and sent to the user.
string | $username | Username |
Implements ESET\SecureAuthentication\SDK\ITwoFactorAuthenticator.