stable
Clone or download
Read-only
This contribution demonstrates that Tuleap is now capable to validate TOTP codes. To test, you can access the page /plugins/mfa/enroll a base32 encoded value is displayed, it is the shared secret between the client and the server validating the TOTP codes. You can generate the TOTP code corresponding to the secret using the CLI tool oathtool (any other tool will work too) this way: oathtool --totp -b <secret> You will get a code that you can set in the input field to check if it is valid or not. This is part of story #11649: protect my account with a TOTP code Change-Id: Ib4ecda515000f1de65c716181f4c939cd484e674
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/mfa/composer.json | +8 | −0 | Go to diff View file |
A | plugins/mfa/composer.lock | +84 | −0 | Go to diff View file |
A | plugins/mfa/include/Enrollment/EnrollmentDisplayController.php | +54 | −0 | Go to diff View file |
A | plugins/mfa/include/Enrollment/EnrollmentPresenter.php | +41 | −0 | Go to diff View file |
A | plugins/mfa/include/Enrollment/EnrollmentRegisterController.php | +60 | −0 | Go to diff View file |
A | plugins/mfa/include/OTP/TOTP.php | +117 | −0 | Go to diff View file |
A | plugins/mfa/include/OTP/TOTPMode.php | +87 | −0 | Go to diff View file |
A | plugins/mfa/include/OTP/TOTPModeBuilder.php | +32 | −0 | Go to diff View file |
A | plugins/mfa/include/OTP/TOTPValidator.php | +63 | −0 | Go to diff View file |
M | plugins/mfa/include/mfaPlugin.class.php | +24 | −0 | Go to diff View file |
A | plugins/mfa/phpunit/.simpletest_skip | +0 | −0 | Go to diff View file |
A | plugins/mfa/phpunit/OTP/TOTPModeTest.php | +83 | −0 | Go to diff View file |
A | plugins/mfa/phpunit/OTP/TOTPTest.php | +74 | −0 | Go to diff View file |
A | plugins/mfa/phpunit/OTP/TOTPValidatorTest.php | +52 | −0 | Go to diff View file |
A | plugins/mfa/phpunit/bootstrap.php | +21 | −0 | Go to diff View file |
A | plugins/mfa/site-content/fr_FR/LC_MESSAGES/tuleap-mfa.po | +16 | −0 | Go to diff View file |
A | plugins/mfa/site-content/tuleap-mfa.pot | +8 | −0 | Go to diff View file |
A | plugins/mfa/templates/enrollment.mustache | +10 | −0 | Go to diff View file |
M | tests/phpunit/phpunit.xml | +1 | −0 | Go to diff View file |