Add scheb/2fa-bundle to official recipes

This commit is contained in:
Wouter de Jong
2021-08-20 13:09:25 +02:00
parent a03800e2c0
commit 44ba802e47
3 changed files with 24 additions and 0 deletions
@@ -0,0 +1,8 @@
# See the configuration reference at https://github.com/scheb/2fa/blob/master/doc/configuration.md
scheb_two_factor:
security_tokens:
- Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
# If you're using guard-based authentication, you have to use this one:
# - Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken
# If you're using authenticator-based security (introduced in Symfony 5.1), you have to use this one:
# - Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken
@@ -0,0 +1,7 @@
2fa_login:
path: /2fa
defaults:
_controller: "scheb_two_factor.form_controller:form"
2fa_login_check:
path: /2fa_check
+9
View File
@@ -0,0 +1,9 @@
{
"bundles": {
"Scheb\\TwoFactorBundle\\SchebTwoFactorBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"aliases": ["2fa"]
}