Skip to content

Commit 44ba802

Browse files
committed
Add scheb/2fa-bundle to official recipes
1 parent a03800e commit 44ba802

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See the configuration reference at https://github.com/scheb/2fa/blob/master/doc/configuration.md
2+
scheb_two_factor:
3+
security_tokens:
4+
- Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
5+
# If you're using guard-based authentication, you have to use this one:
6+
# - Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken
7+
# If you're using authenticator-based security (introduced in Symfony 5.1), you have to use this one:
8+
# - Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken
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

scheb/2fa-bundle/5.0/manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"bundles": {
3+
"Scheb\\TwoFactorBundle\\SchebTwoFactorBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
8+
"aliases": ["2fa"]
9+
}

0 commit comments

Comments
 (0)