Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security:
- encoders:
- Symfony\Component\Security\Core\User\User: plaintext
- role_hierarchy:
- ROLE_ADMIN: ROLE_USER
- ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
- providers:
- in_memory:
- users:
- user: { password: userpass, roles: [ 'ROLE_USER' ] }
- admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
- firewalls:
- dev:
- pattern: ^/(_(profiler|wdt)|css|images|js)/
- security: false
- secured_area:
- pattern: ^/account/
- form_login:
- check_path: /account/loginCheck
- login_path: /account/login
- logout:
- path: /account/logout
- target: /account
- #anonymous: ~
- #http_basic:
- # realm: "Secured Demo Area"
- access_control:
- - { path: ^/account/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement