From 7dec3d471105f8d4e52ec83755b59464e0245cdd Mon Sep 17 00:00:00 2001 From: Christian Scheb Date: Fri, 12 Jun 2020 15:00:31 +0200 Subject: [PATCH] Add recipe for scheb/2fa-bundle --- scheb/2fa-bundle/5.0/config/packages/scheb_2fa.yaml | 8 ++++++++ scheb/2fa-bundle/5.0/config/routes/scheb_2fa.yaml | 7 +++++++ scheb/2fa-bundle/5.0/manifest.json | 8 ++++++++ 3 files changed, 23 insertions(+) create mode 100644 scheb/2fa-bundle/5.0/config/packages/scheb_2fa.yaml create mode 100644 scheb/2fa-bundle/5.0/config/routes/scheb_2fa.yaml create mode 100644 scheb/2fa-bundle/5.0/manifest.json 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..f9204ee8 --- /dev/null +++ b/scheb/2fa-bundle/5.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Scheb\\TwoFactorBundle\\SchebTwoFactorBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}