Add two factor security config to ldap

This commit is contained in:
Jack Anderson 2024-11-26 08:32:32 +00:00
parent 841c48503e
commit 05f5a40bc3
2 changed files with 23 additions and 0 deletions

View file

@ -227,6 +227,17 @@ return static function (ContainerConfigurator $containerConfig) {
],
'logout' => [
'path' => 'app_logout'
],
'two_factor' => [
'check_path' => 'app_2fa_check',
'prepare_on_login' => true,
'prepare_on_access_denied' => true,
'auth_code_parameter_name' => '_auth_code',
'default_target_path' => '/',
'provider' => 'app_user_provider',
'authentication_required_handler' => '2fa_required',
'success_handler' => '2fa_success',
'failure_handler' => '2fa_failed'
]
],
]),