25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

52 satır
2.0 KiB

  1. security:
  2. # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
  3. password_hashers:
  4. Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
  5. # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
  6. providers:
  7. # used to reload user from session & other features (e.g. switch_user)
  8. app_user_provider:
  9. entity:
  10. class: App\Entity\User
  11. property: email
  12. firewalls:
  13. dev:
  14. pattern: ^/(_(profiler|wdt)|css|images|js)/
  15. security: false
  16. auth:
  17. pattern: ^/api/auth
  18. stateless: true
  19. custom_authenticators:
  20. - App\Security\JwtAuthenticator
  21. # json_login:
  22. # check_path: /api/auth
  23. # username_path: email
  24. # password_path: password
  25. # success_handler: lexik_jwt_authentication.handler.authentication_success
  26. # failure_handler: lexik_jwt_authentication.handler.authentication_failure
  27. api:
  28. pattern: ^/api/
  29. stateless: true
  30. provider: app_user_provider
  31. jwt: ~
  32. main:
  33. # Easy way to control access for large sections of your site
  34. # Note: Only the *first* access control that matches will be used
  35. access_control:
  36. # - { path: ^/admin, roles: ROLE_ADMIN }
  37. # - { path: ^/profile, roles: ROLE_USER }
  38. when@test:
  39. security:
  40. password_hashers:
  41. # By default, password hashers are resource intensive and take time. This is
  42. # important to generate secure password hashes. In tests however, secure hashes
  43. # are not important, waste resources and increase test times. The following
  44. # reduces the work factor to the lowest possible values.
  45. Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
  46. algorithm: auto
  47. cost: 4 # Lowest possible value for bcrypt
  48. time_cost: 3 # Lowest possible value for argon
  49. memory_cost: 10 # Lowest possible value for argon