security.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # To get started with security, check out the documentation:
  2. # https://symfony.com/doc/current/security.html
  3. security:
  4. encoders:
  5. AppBundle\Entity\Player: bcrypt
  6. # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
  7. providers:
  8. users:
  9. entity:
  10. class: AppBundle\Entity\Player
  11. property: username
  12. in_memory:
  13. memory: ~
  14. firewalls:
  15. # disables authentication for assets and the profiler, adapt it according to your needs
  16. dev:
  17. pattern: ^/(_(profiler|wdt)|css|images|js)/
  18. security: false
  19. main:
  20. pattern: "^/"
  21. provider: users
  22. anonymous: ~
  23. form_login:
  24. check_path: player_signin
  25. login_path: player_signin
  26. default_target_path: homepage_locale
  27. logout:
  28. path: player_logout
  29. target: homepage_locale
  30. # anonymous: ~
  31. # activate different ways to authenticate
  32. # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
  33. #http_basic: ~
  34. # https://symfony.com/doc/current/security/form_login_setup.html
  35. #form_login: ~