Advertisement
Puzo

Error UserInterFace - security.yml

May 23rd, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.77 KB | None | 0 0
  1. security:
  2.     encoders:
  3.         App\AdminBundle\Entity\Users:
  4.             algorithm: sha512
  5.             encode-as-base64: true
  6.             iterations: 10
  7.  
  8.     providers:
  9.         admin:
  10.             entity: {class:AppAdminBundle:Users, property: username}
  11.            
  12.     firewalls:
  13.         admin:
  14.             pattern: .*
  15.             form_login:
  16.                 check_path: /login_check
  17.                 login_path: /login
  18.             logout:
  19.                 path: /logout
  20.                 target: /
  21.             security: true
  22.             anonymous: true
  23.         public:
  24.             pattern: /.*
  25.             security: false
  26.            
  27.     access_control:
  28.         - { path: /admin/.*, role: ROLE_ADMIN }
  29.         - { path: /.*, role: IS_AUTHENTICATED_ANONYMOUSLY }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement