Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.86 KB | None | 0 0
  1. # security
  2. security:
  3.     encoders:
  4.         BusinessBundle\Model\Acl\Customer\Customer : sha512
  5.         Symfony\Component\Security\Core\User\User:
  6.             algorithm: bcrypt
  7.             cost: 12
  8.     providers:
  9.         fos_userbundle:
  10.             id: fos_user.user_provider.username_email
  11.         in_memory:
  12.             memory:
  13.                 users:
  14.                     drivingo:
  15.                         password: $2y$12$zDuKEHhFCspCJ3V4UXpSm.cpaw4WYp8LK/dgAvG.v/RaxFCyuhvWm
  16.                         roles: 'ROLE_APP_USER'
  17.     firewalls:
  18.         dev:
  19.             pattern: ^/(_(profiler|wdt)|css|images|js)/
  20.             security: false
  21.         docs:
  22.             pattern: ^/api/docs
  23.             http_basic: true
  24.         main:
  25.             pattern: ^/
  26.             form_login:
  27.                 provider: fos_userbundle
  28.                 csrf_token_generator: security.csrf.token_manager
  29.                 login_path: fos_user_security_login
  30.                 check_path: fos_user_security_check
  31.             anonymous: true
  32.             logout:
  33.                 path: fos_user_security_logout
  34.                 target: landing_index
  35.             remember_me:
  36.                 secret: '%secret%'
  37.                 lifetime: 1209600 # 1 week in seconds
  38.                 path: /
  39.                 always_remember_me: true
  40.     role_hierarchy:
  41.             ROLE_APP_SUPER_ADMIN : ROLE_APP_ADMIN
  42.             ROLE_APP_ADMIN : ROLE_APP_USER
  43.             ROLE_APP_USER : ROLE_USER
  44.             ROLE_USER : IS_AUTHENTICATED_ANONYMOUSLY
  45.     access_control:
  46.         - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
  47.         - { path: ^/security, role: IS_AUTHENTICATED_ANONYMOUSLY }
  48.         - { path: ^/foo, role: ROLE_APP_USER }
  49.         - { path: ^/bar, role: ROLE_APP_USER }
  50.         - { path: ^/api, role: ROLE_APP_API }
  51.         - { path: ^/, role: IS_AUTHENTICATED_ANONYMOUSLY }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement