mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
Fix Two Factor not working on auth
This commit is contained in:
parent
0911a1a7ee
commit
ca8ab7ca50
2 changed files with 18 additions and 0 deletions
|
@ -281,6 +281,7 @@ return static function (ContainerConfigurator $containerConfig) {
|
|||
['path' => '^/login$', 'roles' => 'PUBLIC_ACCESS'],
|
||||
['path' => '^/session-status$', 'roles' => 'PUBLIC_ACCESS'],
|
||||
['path' => '^/logout$', 'roles' => 'PUBLIC_ACCESS'],
|
||||
['path' => '^/auth/2fa_check', 'roles' => 'IS_AUTHENTICATED_2FA_IN_PROGRESS'],
|
||||
['path' => '^/saml/login', 'roles' => 'PUBLIC_ACCESS'],
|
||||
['path' => '^/saml/metadata', 'roles' => 'PUBLIC_ACCESS'],
|
||||
['path' => '^/saml/acs', 'roles' => 'PUBLIC_ACCESS'],
|
||||
|
@ -331,6 +332,17 @@ return static function (ContainerConfigurator $containerConfig) {
|
|||
],
|
||||
'logout' => [
|
||||
'path' => 'logged-out'
|
||||
],
|
||||
'two_factor' => [
|
||||
'check_path' => 'native_auth_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'
|
||||
]
|
||||
],
|
||||
'logged-out' => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue