diff --git a/app/config/security.yml b/app/config/security.yml index 5a3f7a34..1720e741 100644 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -62,7 +62,7 @@ security: logout: path: /logout - target: / + success_handler: yunohost.logout_success_handler access_control: - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } diff --git a/app/config/services.yml b/app/config/services.yml index f23961c5..f266e6d1 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -43,6 +43,10 @@ services: tags: - { name: kernel.event_listener, event: security.interactive_login, method: onInteractiveLogin } + yunohost.logout_success_handler: + class: Wallabag\YunoHostBundle\Security\LogoutSuccessHandler + + yunohost.ldap: class: Symfony\Component\Ldap\LdapClient arguments: ["localhost"] diff --git a/src/Wallabag/YunoHostBundle/Security/LogoutSuccessHandler.php b/src/Wallabag/YunoHostBundle/Security/LogoutSuccessHandler.php new file mode 100644 index 00000000..b3268243 --- /dev/null +++ b/src/Wallabag/YunoHostBundle/Security/LogoutSuccessHandler.php @@ -0,0 +1,27 @@ +