Advertisement
Guest User

Untitled

a guest
Jul 13th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 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. encoders:
  5. AppBundle\Entity\User:
  6. algorithm: bcrypt
  7. cost: 4
  8.  
  9. # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
  10. providers:
  11. database_users:
  12. entity: { class: AppBundle:User, property: username }
  13. # our_db_provider:
  14. # entity:
  15. # class: AppBundle:User
  16. # property: username
  17. # in_memory:
  18. # memory:
  19. # users:
  20. # admin:
  21. # password: admin
  22. # roles: 'ROLE_ADMIN'
  23.  
  24.  
  25. firewalls:
  26. # disables authentication for assets and the profiler, adapt it according to your needs
  27. dev:
  28. # pattern: ^/(_(profiler|wdt)|css|images|js)/
  29. # security: false
  30. anonymous: ~
  31. http_basic: ~
  32. form_login:
  33. login_path: login
  34. check_path: login
  35.  
  36. main:
  37. anonymous: ~
  38. form_login:
  39. login_path: login
  40. check_path: login
  41. # activate different ways to authenticate
  42.  
  43. # http_basic: ~
  44. # http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
  45.  
  46. # form_login: ~
  47. # http://symfony.com/doc/current/cookbook/security/form_login_setup.html
  48. default:
  49. anonymous: ~
  50. http_basic: ~
  51.  
  52. access_control:
  53. - { path: ^/admin, roles: ROLE_ADMIN }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement