feat : first commit
This commit is contained in:
24
config/packages/lexik_jwt_authentication.yaml
Normal file
24
config/packages/lexik_jwt_authentication.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
lexik_jwt_authentication:
|
||||
secret_key: '%env(resolve:JWT_SECRET_KEY)%'
|
||||
public_key: '%env(resolve:JWT_PUBLIC_KEY)%'
|
||||
pass_phrase: '%env(JWT_PASSPHRASE)%'
|
||||
remove_token_from_body_when_cookies_used: true
|
||||
token_extractors:
|
||||
authorization_header:
|
||||
enabled: false
|
||||
cookie:
|
||||
enabled: true
|
||||
name: BEARER
|
||||
query_parameter:
|
||||
enabled: false
|
||||
set_cookies:
|
||||
BEARER:
|
||||
lifetime: 86400
|
||||
samesite: lax
|
||||
path: /
|
||||
secure: '%env(bool:JWT_COOKIE_SECURE)%'
|
||||
httpOnly: true
|
||||
api_platform:
|
||||
check_path: /api/login_check
|
||||
username_path: username
|
||||
password_path: password
|
||||
Reference in New Issue
Block a user