feat: add API cookie auth

This commit is contained in:
Maël Gangloff
2024-07-23 13:21:50 +02:00
parent 857a978402
commit 0e82229121
3 changed files with 14 additions and 8 deletions

View File

@@ -3,7 +3,15 @@ lexik_jwt_authentication:
public_key: '%env(resolve:JWT_PUBLIC_KEY)%'
pass_phrase: '%env(JWT_PASSPHRASE)%'
token_ttl: 3600 # in seconds, default is 3600
token_extractors:
authorization_header:
enabled: true
cookie:
enabled: true
name: BEARER
set_cookies:
BEARER: ~
remove_token_from_body_when_cookies_used: false
api_platform:
check_path: /api/login
username_path: email