Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security:
- encoders:
- Acme\UserBundle\Entity\User:
- algorithm: sha512
- encode-as-base64: true
- iterations: 10
- role_hierarchy:
- ROLE_ADMIN: ROLE_USER
- ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
- providers:
- # chain:
- # providers: [in_memory, users_db]
- # in_memory:
- # users:
- # admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
- users_db:
- entity: { class: Acme\UserBundle\Entity\User, property: email }
- firewalls:
- dev:
- pattern: ^/(_(profiler|wdt)|css|images|js)/
- security: false
- login:
- pattern: ^/demo/secured/login$
- security: false
- secured_area:
- pattern: ^/
- anonymous: ~
- form_login:
- check_path: /login_check
- login_path: /login
- logout:
- path: /logout
- target: /
- #http_basic:
- # realm: "Secured Demo Area"
- access_control:
- #- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
- #- { path: ^/_internal, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement