extends |
AuthSchemeModule |
|---|
An authentication scheme module that provides two-factor authentication based on a RFC 6238 Time-Based One-Time Password (TOTP).
| Methods | ||
|---|---|---|
public
static
|
init($f3)
|
# |
public
|
setup(): void
|
# |
public
|
onDashboardBlocks(UIBuildEvent $event): void
|
# |
public
|
onLoginFormBuild(FormBuildEvent $event): void
|
# |
public
|
onLoginFormValidate(FormSubmitEvent $event): void
|
# |
public
|
onLoginFormSubmit(LoginFormSubmitEvent $event): void
|
# |
public
|
onLoginEvent(LoginEvent $event): void
|
# |
protected
|
verifyOTP(array<string, mixed> &$params, string $code, int $max_drift = 1): bool
|
# |
public
|
totp(
string $secret,
int $time = null,
int $period = 30,
int $drift = 0,
string $algorithm = 'sha1',
int $digits = 6,
): int
|
# |
public
|
hotp(string $secret, string $data, string $algorithm = 'sha1', int $digits = 6): int
|
# |
public
|
onUserSecretDataPaths(BaseDataCollectionEvent $event): void
|
# |
| Methods inherited from SimpleID\Auth\AuthSchemeModule |
|---|
__construct() |
| Methods inherited from SimpleID\Module |
|---|
beforeroute(), isHttps(), checkHttps(), getCanonicalURL(), getCanonicalHost(), getOrigin(), fatalError(), secureCompare() |
| Properties inherited from SimpleID\Auth\AuthSchemeModule |
|---|
$auth, $mgr |
| Properties inherited from SimpleID\Module |
|---|
$f3, $logger |