Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main:
- security: true
- anonymous: ~
- #De momento, la entrada es por http_basic.
- http_basic: ~
- logout:
- path: /logout
- target: /
- invalidate_session: true
- delete_cookies: ['PHPSESSID']
- in_memory:
- memory:
- users:
- user:
- password: $2y$12$cDEE6BJbtj94ZnM7PSimSOx1voqQtq0MebnUOYcg6PmnuVFk5uBaC
- roles: 'ROLE_USER'
- admin:
- password: $2y$12$FLJprSiEP/Bkd2xdJyyBGuHOtWuEUePfkXF54UUFexyPUKPmXlSY.
- roles: 'ROLE_ROOT_ADMIN'
- #La aplicación usará ROLE_USER y ROLE_ADMIN. Los otros dos se los reserva el desarrollador
- role_hierarchy:
- ROLE_ROOT_ADMIN: ROLE_SUPER_ADMIN
- ROLE_SUPER_ADMIN: ROLE_ADMIN
- ROLE_ADMIN: ROLE_USER
- #Para denegar el acceso si no hay nivel de autenticación.
- access_control:
- - { path: /admin, roles: ROLE_ADMIN }
- - { path: /user, roles: ROLE_USER }
- logout:
- path: /logout
Add Comment
Please, Sign In to add comment