PlatformAdminCommand
extends Command
in package
Table of Contents
Methods
- defaultName() : string
- execute() : int
- buildOptionParser() : ConsoleOptionParser
- bootstrap() : int
- Run first-admin bootstrap.
- emergencyLogin() : int
- Issue an emergency login token when production TOTP verification is available.
- resetMfa() : int
- Run MFA reset once another-admin TOTP approval exists.
- resetPassword() : int
- Generate and print a new platform admin password.
- rotateRecoveryCodes() : int
- Rotate recovery codes after a successful TOTP challenge.
Methods
defaultName()
public
static defaultName() : string
Tags
Return values
stringexecute()
public
execute(Arguments $args, ConsoleIo $io) : int
Parameters
- $args : Arguments
- $io : ConsoleIo
Tags
Return values
intbuildOptionParser()
protected
buildOptionParser(ConsoleOptionParser $parser) : ConsoleOptionParser
Parameters
- $parser : ConsoleOptionParser
Tags
Return values
ConsoleOptionParserbootstrap()
Run first-admin bootstrap.
private
bootstrap(PlatformAdminRecoveryService $service, Arguments $args, ConsoleIo $io) : int
Parameters
- $service : PlatformAdminRecoveryService
- $args : Arguments
- $io : ConsoleIo
Return values
intemergencyLogin()
Issue an emergency login token when production TOTP verification is available.
private
emergencyLogin(PlatformAdminRecoveryService $service, Arguments $args, ConsoleIo $io) : int
Parameters
- $service : PlatformAdminRecoveryService
- $args : Arguments
- $io : ConsoleIo
Return values
intresetMfa()
Run MFA reset once another-admin TOTP approval exists.
private
resetMfa(PlatformAdminRecoveryService $service, Arguments $args, ConsoleIo $io) : int
Parameters
- $service : PlatformAdminRecoveryService
- $args : Arguments
- $io : ConsoleIo
Return values
intresetPassword()
Generate and print a new platform admin password.
private
resetPassword(PlatformAdminRecoveryService $service, Arguments $args, ConsoleIo $io) : int
Parameters
- $service : PlatformAdminRecoveryService
- $args : Arguments
- $io : ConsoleIo
Return values
introtateRecoveryCodes()
Rotate recovery codes after a successful TOTP challenge.
private
rotateRecoveryCodes(PlatformAdminRecoveryService $service, Arguments $args, ConsoleIo $io) : int
Parameters
- $service : PlatformAdminRecoveryService
- $args : Arguments
- $io : ConsoleIo