aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Resources/config
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2015-10-13 22:43:15 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2015-10-13 22:43:15 +0200
commit2db616b586f473238706e554e809086935e0f33a (patch)
tree769c1a8f7c7541a11c2d71fa97a9ff6871d3d210 /src/Wallabag/UserBundle/Resources/config
parentcf0ea8f113548191cdeb8d3727dd6d2ad25d19ed (diff)
downloadwallabag-2db616b586f473238706e554e809086935e0f33a.tar.gz
wallabag-2db616b586f473238706e554e809086935e0f33a.tar.zst
wallabag-2db616b586f473238706e554e809086935e0f33a.zip
2factor authentication via email
Diffstat (limited to 'src/Wallabag/UserBundle/Resources/config')
-rw-r--r--src/Wallabag/UserBundle/Resources/config/services.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/Resources/config/services.yml b/src/Wallabag/UserBundle/Resources/config/services.yml
index e69de29b..9cdd247d 100644
--- a/src/Wallabag/UserBundle/Resources/config/services.yml
+++ b/src/Wallabag/UserBundle/Resources/config/services.yml
@@ -0,0 +1,19 @@
1parameters:
2 wallabag_user.twofactor.email.provider.class: Wallabag\UserBundle\Security\TwoFactor\Email\Helper
3 wallabag_user.twofactor.email.interactive_login_listener.class: Wallabag\UserBundle\Security\TwoFactor\Email\InteractiveLoginListener
4 wallabag_user.twofactor.email.request_listener.class: Wallabag\UserBundle\Security\TwoFactor\Email\RequestListener
5
6services:
7 wallabag_user.twofactor.email.provider:
8 class: %wallabag_user.twofactor.email.provider.class%
9 arguments: ['@doctrine.orm.entity_manager', '@mailer']
10 wallabag_user.twofactor.email.interactive_login_listener:
11 class: %wallabag_user.twofactor.email.interactive_login_listener.class%
12 tags:
13 - { name: kernel.event_listener, event: security.interactive_login, method: onSecurityInteractiveLogin }
14 arguments: ['@wallabag_user.twofactor.email.provider']
15 wallabag_user.twofactor.email.request_listener:
16 class: %wallabag_user.twofactor.email.request_listener.class%
17 tags:
18 - { name: kernel.event_listener, event: kernel.request, method: onCoreRequest, priority: -1 }
19 arguments: ['@wallabag_user.twofactor.email.provider', '@security.context', '@templating', '@router']