]> BookStack Code Mirror - bookstack/commit
Worked on MFA setup required flow
authorDan Brown <redacted>
Mon, 2 Aug 2021 21:02:25 +0000 (22:02 +0100)
committerDan Brown <redacted>
Mon, 2 Aug 2021 21:02:25 +0000 (22:02 +0100)
commit9b271e559fd0ca98319cf5ba0d7c26916511b62a
tree23ca8900a3458808649ba9009006f1adc44e3d04
parent459706908311101286dadb87a2f12afbf4192bbb
Worked on MFA setup required flow

- Restructured some of the route naming to be a little more consistent.
- Moved the routes about to be more logically in one place.
- Created a new middleware to handle the auth of people that should be
  allowed access to mfa setup routes, since these could be used by
  existing logged in users or by people needing to setup MFA on access.
- Added testing to cover MFA setup required flow.
- Added TTL and method tracking to session last-login tracking system.
15 files changed:
app/Auth/Access/LoginService.php
app/Auth/Access/Mfa/MfaSession.php
app/Http/Controllers/Auth/MfaBackupCodesController.php
app/Http/Controllers/Auth/MfaTotpController.php
app/Http/Kernel.php
app/Http/Middleware/Authenticate.php
app/Http/Middleware/AuthenticatedOrPendingMfa.php [new file with mode: 0644]
resources/views/mfa/backup-codes-generate.blade.php
resources/views/mfa/setup.blade.php
resources/views/mfa/totp-generate.blade.php
resources/views/mfa/verify/backup_codes.blade.php
resources/views/mfa/verify/totp.blade.php
routes/web.php
tests/Auth/MfaConfigurationTest.php
tests/Auth/MfaVerificationTest.php