security.yml 1.5KB

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