Guest User

Untitled

a guest
Mar 24th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. main:
  2. security: true
  3. anonymous: ~
  4. #De momento, la entrada es por http_basic.
  5. http_basic: ~
  6.  
  7. logout:
  8. path: /logout
  9. target: /
  10. invalidate_session: true
  11. delete_cookies: ['PHPSESSID']
  12.  
  13. in_memory:
  14. memory:
  15. users:
  16. user:
  17. password: $2y$12$cDEE6BJbtj94ZnM7PSimSOx1voqQtq0MebnUOYcg6PmnuVFk5uBaC
  18. roles: 'ROLE_USER'
  19. admin:
  20. password: $2y$12$FLJprSiEP/Bkd2xdJyyBGuHOtWuEUePfkXF54UUFexyPUKPmXlSY.
  21. roles: 'ROLE_ROOT_ADMIN'
  22.  
  23. #La aplicación usará ROLE_USER y ROLE_ADMIN. Los otros dos se los reserva el desarrollador
  24. role_hierarchy:
  25. ROLE_ROOT_ADMIN: ROLE_SUPER_ADMIN
  26. ROLE_SUPER_ADMIN: ROLE_ADMIN
  27. ROLE_ADMIN: ROLE_USER
  28.  
  29. #Para denegar el acceso si no hay nivel de autenticación.
  30. access_control:
  31. - { path: /admin, roles: ROLE_ADMIN }
  32. - { path: /user, roles: ROLE_USER }
  33.  
  34. logout:
  35. path: /logout
Add Comment
Please, Sign In to add comment