security.yaml 950 B

123456789101112131415161718192021222324252627
  1. security:
  2. encoders:
  3. App\Entity\User:
  4. algorithm: bcrypt
  5. # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
  6. providers:
  7. users_in_memory: { memory: null }
  8. firewalls:
  9. dev:
  10. pattern: ^/(_(profiler|wdt)|css|images|js)/
  11. security: false
  12. main:
  13. anonymous: true
  14. lazy: true
  15. provider: users_in_memory
  16. # activate different ways to authenticate
  17. # https://symfony.com/doc/current/security.html#firewalls-authentication
  18. # https://symfony.com/doc/current/security/impersonating_user.html
  19. # switch_user: true
  20. # Easy way to control access for large sections of your site
  21. # Note: Only the *first* access control that matches will be used
  22. access_control:
  23. # - { path: ^/admin, roles: ROLE_ADMIN }
  24. # - { path: ^/profile, roles: ROLE_USER }