security.yml 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. imports:
  2. - { resource: "@MuzichCoreBundle/Resources/config/security.yml" }
  3. security:
  4. encoders:
  5. 'FOS\UserBundle\Model\UserInterface':
  6. algorithm: sha512
  7. encode_as_base64: false
  8. iterations: 10
  9. #security:
  10. # encoders:
  11. # Symfony\Component\Security\Core\User\User: plaintext
  12. #
  13. # role_hierarchy:
  14. # ROLE_ADMIN: ROLE_USER
  15. # ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
  16. #
  17. # providers:
  18. # in_memory:
  19. # users:
  20. # user: { password: userpass, roles: [ 'ROLE_USER' ] }
  21. # admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
  22. #
  23. # firewalls:
  24. # dev:
  25. # pattern: ^/(_(profiler|wdt)|css|images|js)/
  26. # security: false
  27. #
  28. # login:
  29. # pattern: ^/demo/secured/login$
  30. # security: false
  31. #
  32. # secured_area:
  33. # pattern: ^/demo/secured/
  34. # form_login:
  35. # check_path: /demo/secured/login_check
  36. # login_path: /demo/secured/login
  37. # logout:
  38. # path: /demo/secured/logout
  39. # target: /demo/
  40. # #anonymous: ~
  41. # #http_basic:
  42. # # realm: "Secured Demo Area"
  43. #
  44. # access_control:
  45. # #- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
  46. # #- { path: ^/_internal, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }