Advertisement
Guest User

Untitled

a guest
Sep 15th, 2011
837
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. security:
  2. encoders:
  3. Acme\UserBundle\Entity\User:
  4. algorithm: sha512
  5. encode-as-base64: true
  6. iterations: 10
  7.  
  8. role_hierarchy:
  9. ROLE_ADMIN: ROLE_USER
  10. ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
  11.  
  12. providers:
  13. # chain:
  14. # providers: [in_memory, users_db]
  15. # in_memory:
  16. # users:
  17. # admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
  18. users_db:
  19. entity: { class: Acme\UserBundle\Entity\User, property: email }
  20.  
  21. firewalls:
  22. dev:
  23. pattern: ^/(_(profiler|wdt)|css|images|js)/
  24. security: false
  25.  
  26. login:
  27. pattern: ^/demo/secured/login$
  28. security: false
  29.  
  30. secured_area:
  31. pattern: ^/
  32. anonymous: ~
  33. form_login:
  34. check_path: /login_check
  35. login_path: /login
  36. logout:
  37. path: /logout
  38. target: /
  39. #http_basic:
  40. # realm: "Secured Demo Area"
  41.  
  42. access_control:
  43. #- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
  44. #- { path: ^/_internal, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement