2012-09-03 19:27:50 +00:00
|
|
|
jms_security_extra:
|
|
|
|
secure_all_services: false
|
|
|
|
expressions: true
|
|
|
|
|
2012-06-14 21:21:55 +00:00
|
|
|
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:
|
2012-09-03 19:27:50 +00:00
|
|
|
memory:
|
|
|
|
users:
|
|
|
|
user: { password: userpass, roles: [ 'ROLE_USER' ] }
|
|
|
|
admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
|
2012-06-14 21:21:55 +00:00
|
|
|
|
|
|
|
firewalls:
|
|
|
|
dev:
|
|
|
|
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
|
|
|
security: false
|
|
|
|
|
|
|
|
login:
|
|
|
|
pattern: ^/demo/secured/login$
|
|
|
|
security: false
|
|
|
|
|
|
|
|
secured_area:
|
|
|
|
pattern: ^/demo/secured/
|
|
|
|
form_login:
|
|
|
|
check_path: /demo/secured/login_check
|
|
|
|
login_path: /demo/secured/login
|
|
|
|
logout:
|
|
|
|
path: /demo/secured/logout
|
|
|
|
target: /demo/
|
|
|
|
#anonymous: ~
|
|
|
|
#http_basic:
|
|
|
|
# realm: "Secured Demo Area"
|
|
|
|
|
|
|
|
access_control:
|
|
|
|
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
|
2012-09-03 19:27:50 +00:00
|
|
|
#- { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
|