Advertisement
Guest User

Untitled

a guest
Mar 10th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. # To get started with security, check out the documentation:
  2. # http://symfony.com/doc/current/book/security.html
  3. security:
  4.  
  5. # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
  6. providers:
  7. in_memory:
  8. memory:
  9. users:
  10. ryan:
  11. password: ryanpass
  12. roles: 'ROLE_USER'
  13. admin:
  14. password: $2y$12$x5/5d8P65UmlI56f8k7.VeDrDj6pgT71pEcTnC3GEztyzINuZjCgy
  15. roles: 'ROLE_ADMIN'
  16.  
  17. firewalls:
  18. # disables authentication for assets and the profiler, adapt it according to your needs
  19. dev:
  20. pattern: ^/(_(profiler|wdt)|css|images|js)/
  21. security: false
  22.  
  23. main:
  24. anonymous: ~
  25. # activate different ways to authenticate
  26.  
  27. http_basic: ~
  28. # http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
  29.  
  30. # form_login: ~
  31. # http://symfony.com/doc/current/cookbook/security/form_login_setup.html
  32.  
  33. access_control:
  34. # require ROLE_ADMIN for /admin*
  35. - { path: ^/admin, roles: ROLE_ADMIN }
  36.  
  37.  
  38. encoders:
  39. Symfony\Component\Security\Core\User\User:
  40. algorithm: bcrypt
  41. cost: 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement