extends |
AuthSchemeModule |
|---|
An authentication scheme module that provides account recovery through recovery codes.
| Methods | ||
|---|---|---|
public
static
|
init($f3)
|
# |
public
|
setupRecoveryCodes(): void
|
# |
public
|
onDashboardBlocks(UIBuildEvent $event): void
|
# |
public
|
onLoginFormBuild(FormBuildEvent $event): void
|
# |
public
|
onLoginFormValidate(FormSubmitEvent $event): void
|
# |
public
|
onLoginFormSubmit(LoginFormSubmitEvent $event): void
|
# |
protected
|
encodeRecoveryCode(string $code): string
|
# |
protected
|
verifyRecoveryCode(string $code, string $encoded): bool
|
# |
public
|
onUserSecretDataPaths(BaseDataCollectionEvent $event): void
|
# |
| Methods inherited from SimpleID\Auth\AuthSchemeModule |
|---|
__construct(), isBlockActive() |
| Methods inherited from SimpleID\Module |
|---|
beforeroute(), isHttps(), checkHttps(), getCanonicalURL(), getCanonicalHost(), getOrigin(), fatalError(), secureCompare() |
| Constants | |||
|---|---|---|---|
public
|
RECOVERY_CODE_COUNT = 5
|
# | |
public
|
RECOVERY_CODE_MAX_ATTEMPTS = 5
|
# | |
public
|
RECOVERY_CODE_TIMEOUT = 3600
|
# | |
public
|
PBKDF2_ALGORITHM = 'sha256'
|
# | |
public
|
PBKDF2_ITERATIONS = 600000
|
# | |
| Properties inherited from SimpleID\Auth\AuthSchemeModule |
|---|
$auth, $mgr |
| Properties inherited from SimpleID\Module |
|---|
$f3, $logger |