Advertisement
Guest User

Untitled

a guest
Jun 28th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. security:
  2. # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
  3. providers:
  4. en_dure:
  5. memory:
  6. users:
  7. adluc:
  8. password: adrien
  9. roles: ROLE_USER
  10. root:
  11. password: admin
  12. roles: ROLE_ADMIN
  13.  
  14. role_hierarchy:
  15. ROLE_MANAGER: ROLE_USER
  16. ROLE_ADMIN: ROLE_MANAGER
  17.  
  18. encoders:
  19. Symfony\Component\Security\Core\User\User: plaintext
  20.  
  21. firewalls:
  22. dev:
  23. pattern: ^/(_(profiler|wdt)|css|images|js)/
  24. security: false
  25. main:
  26. anonymous: true
  27. http_basic: true
  28. provider: en_dure
  29. # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
  30.  
  31. # form_login: true
  32. # https://symfony.com/doc/current/security/form_login_setup.html
  33.  
  34. # Easy way to control access for large sections of your site
  35. # Note: Only the *first* access control that matches will be used
  36. access_control:
  37. # - { path: ^/admin, roles: ROLE_ADMIN }
  38. # - { path: ^/profile, roles: ROLE_USER }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement