Advertisement
Guest User

Untitled

a guest
Dec 19th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. # To get started with security, check out the documentation:
  2. # http://symfony.com/doc/current/security.html
  3. security:
  4. encoders:
  5. Symfony\Component\Security\Core\User\User: plaintext
  6.  
  7. # http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
  8. providers:
  9. in_memory:
  10. memory:
  11. users:
  12. jacek:
  13. password: LubiePlacki7
  14. roles: "ROLE_USER"
  15. admin:
  16. password: admin
  17. roles: "ROLE_ADMIN"
  18.  
  19. firewalls:
  20. # disables authentication for assets and the profiler, adapt it according to your needs
  21. dev:
  22. pattern: ^/(_(profiler|wdt)|css|images|js)/
  23. security: false
  24.  
  25. main:
  26. anonymous: ~
  27. # activate different ways to authenticate
  28.  
  29. http_basic: ~
  30. # http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
  31. access_control:
  32. - {path: ^/restricted,roles: ROLE_USER}
  33. # form_login: ~
  34. # http://symfony.com/doc/current/cookbook/security/form_login_setup.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement