wallabag/app/config/security.yml

54 lines
1.7 KiB
YAML
Raw Normal View History

2015-01-22 07:30:07 +00:00
security:
encoders:
Wallabag\CoreBundle\Entity\User:
2015-01-31 14:14:10 +00:00
algorithm: sha1
encode_as_base64: false
iterations: 1
2015-01-22 07:30:07 +00:00
role_hierarchy:
ROLE_ADMIN: ROLE_USER
2015-01-31 14:14:10 +00:00
ROLE_SUPER_ADMIN: [ ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ]
2015-01-22 07:30:07 +00:00
providers:
2015-01-31 14:14:10 +00:00
administrators:
entity: { class: WallabagCoreBundle:User, property: username }
2015-08-18 09:08:45 +00:00
fos_userbundle:
id: fos_user.user_provider.username
2015-01-22 07:30:07 +00:00
# the main part of the security, where you can set up firewalls
# for specific sections of your app
firewalls:
2015-02-09 12:59:48 +00:00
wsse_secured:
pattern: /api/.*
wsse: true
stateless: true
anonymous: true
2015-01-31 14:14:10 +00:00
login_firewall:
pattern: ^/login$
anonymous: ~
secured_area:
2015-08-18 09:08:45 +00:00
pattern: ^/
form_login:
2015-08-18 09:08:45 +00:00
provider: fos_userbundle
csrf_provider: security.csrf.token_manager
2015-08-18 09:08:45 +00:00
anonymous: true
2015-08-12 10:27:12 +00:00
remember_me:
key: "%secret%"
lifetime: 31536000
path: /
domain: ~
logout:
path: /logout
target: /
2015-01-31 14:14:10 +00:00
2015-01-22 07:30:07 +00:00
access_control:
2015-02-10 07:35:43 +00:00
- { path: ^/api/salt, roles: IS_AUTHENTICATED_ANONYMOUSLY }
2015-02-02 11:54:14 +00:00
- { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY }
2015-01-31 14:14:10 +00:00
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
2015-03-07 22:25:36 +00:00
- { path: ^/forgot-password, roles: IS_AUTHENTICATED_ANONYMOUSLY }
2015-03-28 20:43:49 +00:00
- { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
2015-01-31 14:14:10 +00:00
- { path: ^/, roles: ROLE_USER }