Advertisement
Guest User

security.yml

a guest
Oct 21st, 2012
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.21 KB | None | 0 0
  1. jms_security_extra:
  2.     secure_all_services: false
  3.     expressions: true
  4.  
  5. security:
  6.     encoders:
  7.         SeerUK\Security\AccountBundle\Entity\User:
  8.             algorithm: sha1
  9.             encode_as_base64: false
  10.             iterations: 1
  11.  
  12.     role_hierarchy:
  13.         ROLE_ADMIN:      ROLE_USER
  14.         ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
  15.  
  16.     providers:
  17.         administrators:
  18.             entity: { class: SeerUKSecurityAccountBundle:User, property: account_name }
  19.  
  20.     firewalls:
  21.         login:
  22.             pattern: ^/Account/Login$
  23.             security: false
  24.  
  25.         secured_area:
  26.             pattern:   ^/
  27.             form_login:
  28.                 check_path: /Account/Login/Check
  29.                 login_path: /Account/Login
  30.             logout:
  31.                 path:  /Account/Logout
  32.                 target: /
  33.             anonymous: ~
  34.             #http_basic:
  35.             #    realm: "Secured Demo Area"
  36.  
  37.     access_control:
  38.        #- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
  39.         #- { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
  40.         - { path: ^/Admin, roles: ROLE_ADMIN }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement