Skip to content

Commit 0d96857

Browse files
committed
Add scheb/2fa-bundle dependency
1 parent 8735700 commit 0d96857

6 files changed

Lines changed: 96 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"league/commonmark": "^2.5",
2323
"phpdocumentor/reflection-docblock": "^5.3",
2424
"phpstan/phpdoc-parser": "^2.1",
25+
"scheb/2fa-bundle": "^7.7",
2526
"sentry/sentry-symfony": "^5.0",
2627
"symfony/asset": "^7.0",
2728
"symfony/console": "^7.0",

composer.lock

Lines changed: 69 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/bundles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
77
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
88
EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle::class => ['all' => true],
9+
Scheb\TwoFactorBundle\SchebTwoFactorBundle::class => ['all' => true],
910
Sentry\SentryBundle\SentryBundle::class => ['prod' => true],
1011
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
1112
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],

config/packages/scheb_2fa.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# See the configuration reference at https://symfony.com/bundles/SchebTwoFactorBundle/6.x/configuration.html
2+
scheb_two_factor:
3+
security_tokens:
4+
- Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
5+
- Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken

config/routes/scheb_2fa.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2fa_login:
2+
path: /2fa
3+
defaults:
4+
_controller: "scheb_two_factor.form_controller::form"
5+
6+
2fa_login_check:
7+
path: /2fa_check

symfony.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)