Advertisement
Guest User

nibba

a guest
Nov 29th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. # To get started with security, check out the documentation:
  2. # https://symfony.com/doc/current/security.html
  3. security:
  4. providers:
  5. in_memory:
  6. memory:
  7. users:
  8. ryan:
  9. password: $2y$12$I8FWSSf3EoEuFZl2IpF9Cudf2QTsaTogw2sLVebCfnvhg4ipCBm9i
  10. roles: 'ROLE_USER'
  11. admin:
  12. password: $2y$12$lGtjwI1YH.bwy05/UU8I6.ereM2o/WrmREjZH5w.H4tKJTqV7IKCm
  13. roles: 'ROLE_ADMIN'
  14. encoders:
  15. Symfony\Component\Security\Core\User\User:
  16. algorithm: bcrypt
  17. cost: 12
  18.  
  19. firewalls:
  20. dev:
  21. pattern: ^/(_(profiler|wdt)|css|images|js)/
  22. security: false
  23.  
  24. main:
  25. anonymous: ~
  26. logout_on_user_change: true
  27. http_basic: ~
  28. form_login:
  29. login_path: login
  30. check_path: login
  31. success-handler: app.login_handler
  32. logout:
  33. path: /logout
  34. target: /
  35.  
  36. access_control:
  37. # require ROLE_ADMIN for /admin*
  38. - { path: ^/admin, roles: ROLE_ADMIN }
  39. # require ROLE_USER for /user*
  40. - { path: ^/user, roles: ROLE_USER}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement