Add recipe for scheb/2fa-bundle

This commit is contained in:
Christian Scheb
2020-06-12 15:00:31 +02:00
parent ec9d8fcbb9
commit 7dec3d4711
3 changed files with 23 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
+8
View File
@@ -0,0 +1,8 @@
{
"bundles": {
"Scheb\\TwoFactorBundle\\SchebTwoFactorBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}