Advertisement
Guest User

Untitled

a guest
Aug 9th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.31 KB | None | 0 0
  1. security:
  2.     encoders:
  3.         Callcenter\PrivateBundle\Entity\GlobalUser:
  4.           algorithm: md5
  5.           encode-as-base64: false
  6.           iterations: 10
  7.         ##main:
  8.         ##  algorithm:        md5
  9.         ##  encode_as_base64: ~
  10.         ##  iterations:       ~
  11.           ##id: security.encoder.md5
  12.            ##property: username
  13.            ##   algorithm: plaintext
  14.  
  15.     role_hierarchy:
  16.         ROLE_ADMIN:      ROLE_USER
  17.         SUPER_ADMON:     ADMON
  18.         ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
  19.  
  20.     providers:
  21.         main:
  22.           id: callcenter.manager
  23.           #entity: { class: Callcenter\PrivateBundle\ats\Users, property: username }
  24.         callcenter:
  25.             entity: { class: CallcenterPrivate:GlobalUser, property: username }
  26.             #id: callcenter.entity
  27.         default:
  28.             entity: { class: CallcenterPrivate:GlobalUser }
  29.         in_memory:
  30.             users:
  31.                 user: { password: userpass, roles: [ 'ROLE_USER' ] }
  32.                 admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }              
  33.  
  34.     firewalls:
  35.         main:
  36.           pattern: /.*
  37.           form-login:
  38.             login_path: /login
  39.             check_path: /login_check
  40.             provider: callcenter
  41.             #failure_path:                   null
  42.             #always_use_default_target_path: false
  43.             #default_target_path:            /
  44.             #target_path_parameter:          _target_path
  45.             #use_referer:                    false
  46.           security: true
  47.           anonymous: true
  48.            
  49.         profiler:
  50.             pattern: ^/_profiler
  51.             security: false
  52.  
  53.         wdt:
  54.             pattern: ^/_wdt
  55.             security: false
  56.  
  57.         secured_area:
  58.             pattern:   ^/demo/secured/
  59.             form_login:
  60.                 check_path: /demo/secured/login_check
  61.                 login_path: /demo/secured/login
  62.             logout:
  63.                 path:  /demo/secured/logout
  64.                 target: /demo/
  65.             #anonymous: ~
  66.             #http_basic:
  67.             #    realm: "Secured Demo Area"
  68.  
  69.     access_control:
  70.         - { path: /.*, role: IS_AUTHENTICATED_ANONYMOUSLY }
  71.         #- { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement