| @@ 35-50 (lines=16) @@ | ||
| 32 | ||
| 33 | final class BootstrapIdentityWithYubikeySecondFactorCommand extends Command |
|
| 34 | { |
|
| 35 | protected function configure() |
|
| 36 | { |
|
| 37 | $this |
|
| 38 | ->setName('middleware:bootstrap:identity-with-yubikey') |
|
| 39 | ->setDescription('Creates an identity with a vetted Yubikey second factor') |
|
| 40 | ->addArgument('name-id', InputArgument::REQUIRED, 'The NameID of the identity to create') |
|
| 41 | ->addArgument('institution', InputArgument::REQUIRED, 'The institution of the identity to create') |
|
| 42 | ->addArgument('common-name', InputArgument::REQUIRED, 'The Common Name of the identity to create') |
|
| 43 | ->addArgument('email', InputArgument::REQUIRED, 'The e-mail address of the identity to create') |
|
| 44 | ->addArgument('preferred-locale', InputArgument::REQUIRED, 'The preferred locale of the identity to create') |
|
| 45 | ->addArgument( |
|
| 46 | 'yubikey', |
|
| 47 | InputArgument::REQUIRED, |
|
| 48 | 'The public ID of the Yubikey. Remove the last 32 characters of a Yubikey OTP to acquire this.' |
|
| 49 | ); |
|
| 50 | } |
|
| 51 | ||
| 52 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 53 | { |
|
| @@ 37-57 (lines=21) @@ | ||
| 34 | ||
| 35 | final class BootstrapIdentityWithSmsSecondFactorCommand extends AbstractBootstrapCommand |
|
| 36 | { |
|
| 37 | protected function configure() |
|
| 38 | { |
|
| 39 | $this |
|
| 40 | ->setName('middleware:bootstrap:identity-with-sms') |
|
| 41 | ->setDescription('Creates an identity with a SMS second factor') |
|
| 42 | ->addArgument('name-id', InputArgument::REQUIRED, 'The NameID of the identity to create') |
|
| 43 | ->addArgument('institution', InputArgument::REQUIRED, 'The institution of the identity to create') |
|
| 44 | ->addArgument('common-name', InputArgument::REQUIRED, 'The Common Name of the identity to create') |
|
| 45 | ->addArgument('email', InputArgument::REQUIRED, 'The e-mail address of the identity to create') |
|
| 46 | ->addArgument('preferred-locale', InputArgument::REQUIRED, 'The preferred locale of the identity to create') |
|
| 47 | ->addArgument( |
|
| 48 | 'phone-number', |
|
| 49 | InputArgument::REQUIRED, |
|
| 50 | 'The phone number of the user should be formatted like "+31 (0) 612345678"' |
|
| 51 | ) |
|
| 52 | ->addArgument( |
|
| 53 | 'registration-status', |
|
| 54 | InputArgument::REQUIRED, |
|
| 55 | 'Valid arguments: unverified, verified, vetted' |
|
| 56 | ); |
|
| 57 | } |
|
| 58 | ||
| 59 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 60 | { |
|