Added own APIToken authenticator, so we can wrap the used API token inside the symfony security token

This commit is contained in:
Jan Böhmer 2023-08-17 00:17:02 +02:00
parent bcd41c4d9b
commit 8dad143f8d
10 changed files with 391 additions and 67 deletions

View file

@ -21,12 +21,12 @@ security:
user_checker: App\Security\UserChecker
entry_point: form_login
access_token:
token_handler: App\Security\ApiTokenHandler
# Enable user impersonation
switch_user: { role: CAN_SWITCH_USER }
custom_authenticators:
- App\Security\ApiTokenAuthenticator
two_factor:
auth_form_path: 2fa_login
check_path: 2fa_login_check