Allow option to re-direct on logout action

- Add logout configuration
- Change auth.service.ts to re-direct instead of posting depending on configuration
This commit is contained in:
Clemente Raposo 2022-08-09 15:20:57 +01:00
parent 606d1540e3
commit 3cd6efcc3f
5 changed files with 34 additions and 5 deletions

View file

@ -56,6 +56,7 @@ services:
$subpanelTopActions: '%module.subpanel.top_actions%'
$subpanelTopButtons: '%module.subpanel.top_buttons%'
$ldapAutoCreateExtraFieldsMap: '%ldap.autocreate.extra_fields_map%'
$logoutConfig: '%auth.logout%'
_instanceof:
App\Process\Service\ProcessHandlerInterface:
tags: [ 'app.process.handler' ]
@ -296,6 +297,8 @@ services:
alias: App\SystemConfig\Service\SystemConfigProviderInterface
public: true
Symfony\Component\Security\Http\Logout\LogoutUrlGenerator: '@security.logout_url_generator'
App\UserPreferences\Service\UserPreferencesProviderInterface: '@App\UserPreferences\LegacyHandler\UserPreferenceHandler'
App\ViewDefinitions\Service\ViewDefinitionsProviderInterface: '@App\ViewDefinitions\LegacyHandler\ViewDefinitionsHandler'
App\Engine\Service\FolderSync\FolderComparatorInterface: '@App\Engine\Service\FolderSync\FolderComparator'

View file

@ -0,0 +1,4 @@
parameters:
auth.logout:
path: "%auth.logout.path%"
redirect: "%auth.logout.redirect%"

View file

@ -29,3 +29,4 @@ parameters:
recordview_actions_limits: true
ui: true
extensions: true
logout: true