diff --git a/scheb/2fa-bundle/5.0/config/packages/scheb_2fa.yaml b/scheb/2fa-bundle/5.0/config/packages/scheb_2fa.yaml new file mode 100644 index 00000000..6b6135ae --- /dev/null +++ b/scheb/2fa-bundle/5.0/config/packages/scheb_2fa.yaml @@ -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 diff --git a/scheb/2fa-bundle/5.0/config/routes/scheb_2fa.yaml b/scheb/2fa-bundle/5.0/config/routes/scheb_2fa.yaml new file mode 100644 index 00000000..b574a0c9 --- /dev/null +++ b/scheb/2fa-bundle/5.0/config/routes/scheb_2fa.yaml @@ -0,0 +1,7 @@ +2fa_login: + path: /2fa + defaults: + _controller: "scheb_two_factor.form_controller:form" + +2fa_login_check: + path: /2fa_check diff --git a/scheb/2fa-bundle/5.0/manifest.json b/scheb/2fa-bundle/5.0/manifest.json new file mode 100644 index 00000000..5ef9bb2f --- /dev/null +++ b/scheb/2fa-bundle/5.0/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "Scheb\\TwoFactorBundle\\SchebTwoFactorBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "aliases": ["2fa"] +}