mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added own APIToken authenticator, so we can wrap the used API token inside the symfony security token
This commit is contained in:
parent
bcd41c4d9b
commit
8dad143f8d
10 changed files with 391 additions and 67 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue