]> git.immae.eu Git - github/wallabag/wallabag.git/blob - config/security.yml
Merge pull request #4438 from wallabag/dependabot/composer/scheb/two-factor-bundle...
[github/wallabag/wallabag.git] / config / security.yml
1 security:
2 encoders:
3 Wallabag\CoreBundle\Entity\User:
4 algorithm: sha1
5 encode_as_base64: false
6 iterations: 1
7
8 role_hierarchy:
9 ROLE_ADMIN: ROLE_USER
10 ROLE_SUPER_ADMIN: [ ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ]
11
12 providers:
13 administrators:
14 entity: { class: WallabagCoreBundle:User, property: username }
15
16 # the main part of the security, where you can set up firewalls
17 # for specific sections of your app
18 firewalls:
19 wsse_secured:
20 pattern: /api/.*
21 wsse: true
22 stateless: true
23 anonymous: true
24 login_firewall:
25 pattern: ^/login$
26 anonymous: ~
27
28 secured_area:
29 pattern: ^/
30 anonymous: ~
31 form_login:
32 login_path: /login
33
34 use_forward: false
35
36 check_path: /login_check
37
38 post_only: true
39
40 always_use_default_target_path: false
41 default_target_path: /
42 target_path_parameter: _target_path
43 use_referer: true
44
45 failure_path: null
46 failure_forward: false
47
48 username_parameter: _username
49 password_parameter: _password
50
51 csrf_parameter: _csrf_token
52 intention: authenticate
53
54 remember_me:
55 key: "%secret%"
56 lifetime: 31536000
57 path: /
58 domain: ~
59
60 logout:
61 path: /logout
62 target: /
63
64 access_control:
65 - { path: ^/api/salt, roles: IS_AUTHENTICATED_ANONYMOUSLY }
66 - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY }
67 - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
68 - { path: ^/forgot-password, roles: IS_AUTHENTICATED_ANONYMOUSLY }
69 - { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
70 - { path: ^/, roles: ROLE_USER }