container1.yml 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. security:
  2. acl: ~
  3. encoders:
  4. JMS\FooBundle\Entity\User1: plaintext
  5. JMS\FooBundle\Entity\User2:
  6. algorithm: sha1
  7. encode_as_base64: false
  8. iterations: 5
  9. JMS\FooBundle\Entity\User3:
  10. algorithm: md5
  11. JMS\FooBundle\Entity\User4:
  12. id: security.encoder.foo
  13. providers:
  14. default:
  15. users:
  16. foo: { password: foo, roles: ROLE_USER }
  17. digest:
  18. users:
  19. foo: { password: foo, roles: 'ROLE_USER, ROLE_ADMIN' }
  20. basic:
  21. users:
  22. foo: { password: 0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33, roles: ROLE_SUPER_ADMIN }
  23. bar: { password: 0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33, roles: [ROLE_USER, ROLE_ADMIN] }
  24. doctrine:
  25. entity: { class: SecurityBundle:User, property: username }
  26. service:
  27. id: user.manager
  28. chain:
  29. providers: [service, doctrine, basic]
  30. firewalls:
  31. simple: { pattern: /login, security: false }
  32. secure:
  33. stateless: true
  34. http_basic: true
  35. http_digest:
  36. key: TheKey
  37. form_login: true
  38. anonymous: true
  39. switch_user: true
  40. x509: true
  41. logout: true
  42. role_hierarchy:
  43. ROLE_ADMIN: ROLE_USER
  44. ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
  45. ROLE_REMOTE: ROLE_USER,ROLE_ADMIN
  46. access_control:
  47. - { path: /blog/524, role: ROLE_USER, requires_channel: https }
  48. -
  49. path: /blog/.*
  50. role: IS_AUTHENTICATED_ANONYMOUSLY