No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

45 líneas
1.9 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. users_in_memory: { memory: null }
  8. app_entity_users:
  9. entity:
  10. class: App\Entity\EntUser
  11. firewalls:
  12. dev:
  13. pattern: ^/(_(profiler|wdt)|css|images|js)/
  14. security: false
  15. main:
  16. lazy: true
  17. provider: users_in_memory
  18. custom_authenticators:
  19. - App\Security\JsonAuthenticator
  20. # activate different ways to authenticate
  21. # https://symfony.com/doc/current/security.html#the-firewall
  22. # https://symfony.com/doc/current/security/impersonating_user.html
  23. # switch_user: true
  24. # Easy way to control access for large sections of your site
  25. # Note: Only the *first* access control that matches will be used
  26. access_control:
  27. # - { path: ^/admin, roles: ROLE_ADMIN }
  28. # - { path: ^/profile, roles: ROLE_USER }
  29. when@test:
  30. security:
  31. password_hashers:
  32. # By default, password hashers are resource intensive and take time. This is
  33. # important to generate secure password hashes. In tests however, secure hashes
  34. # are not important, waste resources and increase test times. The following
  35. # reduces the work factor to the lowest possible values.
  36. Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
  37. algorithm: auto
  38. cost: 4 # Lowest possible value for bcrypt
  39. time_cost: 3 # Lowest possible value for argon
  40. memory_cost: 10 # Lowest possible value for argon