Guest User

Untitled

a guest
Jul 21st, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. ###FORM_LOGIN_AUTH
  2. security.config:
  3. encoders:
  4. Symfony\Component\Security\User\User: plaintext
  5. providers:
  6. main:
  7. users:
  8. foo: { password: bar, roles: ROLE_USER }
  9. firewalls:
  10. login: { pattern: /login, security: true, anonymous: true }
  11. login_check: { pattern: /login_check, security: true, anonymous: true, form_login: true }
  12. profiler: { pattern: /_profiler.*, security: true, anonymous: true }
  13. main:
  14. pattern: /admin.*
  15. form_login: { check_path: /login_check }
  16. logout: { path: /logout, target: /login }
  17. anonymous: true
  18. public:
  19. pattern: .*
  20. anonymous: true
  21. logout: { path: /logout, target: /login }
  22. access_control:
  23. - { path: /admin.*, role: [ ROLE_USER ] }
  24. - { path: .*, role: IS_AUTHENTICATED_ANONYMOUSLY }
  25.  
  26.  
  27. ####HTTP_BASIC AUTH
  28. security.config:
  29. encoders:
  30. Symfony\Component\Security\User\User: plaintext
  31. providers:
  32. main:
  33. users:
  34. foo: { password: bar, roles: ROLE_USER }
  35. firewalls:
  36. profiler: { pattern: /_profiler.*, security: true, anonymous: true }
  37. main:
  38. pattern: /admin.*
  39. http_basic: true
  40. anonymous: true
  41. public:
  42. pattern: .*
  43. anonymous: true
  44. access_control:
  45. - { path: /admin.*, role: [ ROLE_USER ] }
  46. - { path: .*, role: IS_AUTHENTICATED_ANONYMOUSLY }
Add Comment
Please, Sign In to add comment