container1.yml 1.6 KB

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