@@ 34-56 (lines=23) @@ | ||
31 | ||
32 | final class BootstrapGsspSecondFactorCommand extends AbstractBootstrapCommand |
|
33 | { |
|
34 | protected function configure() |
|
35 | { |
|
36 | $this |
|
37 | ->setDescription('Creates a Generic SAML Second Factor (GSSF) second factor for a specified user') |
|
38 | ->addArgument('name-id', InputArgument::REQUIRED, 'The NameID of the identity to create') |
|
39 | ->addArgument('institution', InputArgument::REQUIRED, 'The institution of the identity to create') |
|
40 | ->addArgument( |
|
41 | 'gssp-token-type', |
|
42 | InputArgument::REQUIRED, |
|
43 | 'The GSSP token type as defined in the GSSP config, for example tiqr or webauthn' |
|
44 | ) |
|
45 | ->addArgument( |
|
46 | 'gssp-token-identifier', |
|
47 | InputArgument::REQUIRED, |
|
48 | 'The identifier of the token as registered at the GSSP' |
|
49 | ) |
|
50 | ->addArgument( |
|
51 | 'registration-status', |
|
52 | InputArgument::REQUIRED, |
|
53 | 'Valid arguments: unverified, verified, vetted' |
|
54 | ) |
|
55 | ->addArgument('actor-id', InputArgument::REQUIRED, 'The id of the vetting actor'); |
|
56 | } |
|
57 | ||
58 | protected function execute(InputInterface $input, OutputInterface $output) |
|
59 | { |
@@ 33-43 (lines=11) @@ | ||
30 | ||
31 | final class BootstrapIdentityCommand extends AbstractBootstrapCommand |
|
32 | { |
|
33 | protected function configure() |
|
34 | { |
|
35 | $this |
|
36 | ->setDescription('Creates an identity') |
|
37 | ->addArgument('name-id', InputArgument::REQUIRED, 'The NameID of the identity to create') |
|
38 | ->addArgument('institution', InputArgument::REQUIRED, 'The institution of the identity to create') |
|
39 | ->addArgument('common-name', InputArgument::REQUIRED, 'The Common Name of the identity to create') |
|
40 | ->addArgument('email', InputArgument::REQUIRED, 'The e-mail address of the identity to create') |
|
41 | ->addArgument('preferred-locale', InputArgument::REQUIRED, 'The preferred locale of the identity to create') |
|
42 | ->addArgument('actor-id', InputArgument::REQUIRED, 'The id of the vetting actor'); |
|
43 | } |
|
44 | ||
45 | protected function execute(InputInterface $input, OutputInterface $output) |
|
46 | { |
@@ 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 | { |