kekrozsak/app/config/security.yml

61 lines
1.8 KiB
YAML
Raw Normal View History

jms_security_extra:
secure_all_services: false
expressions: true
security:
acl:
connection: default
encoders:
Symfony\Component\Security\Core\User\User: plaintext
2012-07-15 12:56:31 +00:00
KekRozsak\SecurityBundle\Entity\User:
id: kek_rozsak_security.encoder.crypt
role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
providers:
user_db:
entity:
2012-07-15 12:56:31 +00:00
class: KekRozsak\SecurityBundle\Entity\User
property: username
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
login:
pattern: ^/login$
security: false
stylesheets:
pattern: \.css$
security: false
news_side_list:
pattern: ^/newsSideList.html$
security: false
members:
pattern: ^/
2012-07-15 12:56:31 +00:00
form_login:
check_path: /login_check
login_path: /login
logout:
path: /logout
target: /
anonymous: ~
access_control:
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/cikk/, roles: IS_AUTHENTICATED_ANONYMOUSLY }
2012-07-07 09:13:13 +00:00
- { path: ^/jelentkezes, roles: IS_AUTHENTICATED_ANONYMOUSLY }
2012-07-15 12:56:31 +00:00
- { path: ^/most_varj, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, roles: [ IS_AUTHENTICATED_FULLY, IS_AUTHENTICATED_REMEMBERED ] }
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
#- { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }