Files
2026-05-27 19:36:32 +03:00

39 lines
1003 B
YAML

security:
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
providers:
app_user_provider:
entity:
class: App\Entity\User
property: email
firewalls:
api:
pattern: ^/
stateless: true
provider: app_user_provider
jwt: ~
main:
lazy: true
provider: app_user_provider
login_throttling:
max_attempts: 3
interval: '15 minutes'
logout:
path: user_logout
access_control:
# - { path: ^/api/auth, roles: PUBLIC_ACCESS }
# - { path: ^/api, roles: ROLE_USER }
when@test:
security:
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
algorithm: auto
cost: 4
time_cost: 3
memory_cost: 10