Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.99 KB | None | 0 0
  1. security:
  2.     encoders:
  3.         Symfony\Component\Security\Core\User\User: plaintext
  4.  
  5.     role_hierarchy:
  6.         ROLE_ADMIN:      ROLE_USER
  7.         ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
  8.  
  9.     providers:
  10.         in_memory:
  11.             users:
  12.                 user: { password: userpass, roles: [ 'ROLE_USER' ] }
  13.                 admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
  14.  
  15.     firewalls:
  16.         dev:
  17.             pattern: ^/(_(profiler|wdt)|css|images|js)/
  18.             security: false
  19.  
  20.         secured_area:
  21.             pattern:   ^/account/
  22.             form_login:
  23.                 check_path: /account/loginCheck
  24.                 login_path: /account/login
  25.             logout:
  26.                 path:  /account/logout
  27.                 target: /account
  28.             #anonymous: ~
  29.             #http_basic:
  30.             #    realm: "Secured Demo Area"
  31.  
  32.     access_control:
  33.         - { path: ^/account/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement