]>
Commit | Line | Data |
---|---|---|
93fd4692 | 1 | security: |
93fd4692 | 2 | encoders: |
d9169157 | 3 | Wallabag\CoreBundle\Entity\User: |
c3235553 NL |
4 | algorithm: sha1 |
5 | encode_as_base64: false | |
6 | iterations: 1 | |
93fd4692 | 7 | |
93fd4692 NL |
8 | role_hierarchy: |
9 | ROLE_ADMIN: ROLE_USER | |
c3235553 | 10 | ROLE_SUPER_ADMIN: [ ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ] |
93fd4692 | 11 | |
93fd4692 | 12 | providers: |
c3235553 | 13 | administrators: |
d9169157 | 14 | entity: { class: WallabagCoreBundle:User, property: username } |
93fd4692 NL |
15 | |
16 | # the main part of the security, where you can set up firewalls | |
17 | # for specific sections of your app | |
18 | firewalls: | |
0ac38198 NL |
19 | wsse_secured: |
20 | pattern: /api/.* | |
21 | wsse: true | |
22 | stateless: true | |
23 | anonymous: true | |
c3235553 NL |
24 | login_firewall: |
25 | pattern: ^/login$ | |
26 | anonymous: ~ | |
27 | ||
d9169157 J |
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 | ||
728a4328 | 40 | always_use_default_target_path: false |
d9169157 | 41 | default_target_path: / |
728a4328 | 42 | target_path_parameter: _target_path |
d9169157 J |
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 | ||
5a584614 NL |
54 | remember_me: |
55 | key: "%secret%" | |
56 | lifetime: 31536000 | |
57 | path: / | |
58 | domain: ~ | |
59 | ||
d9169157 J |
60 | logout: |
61 | path: /logout | |
62 | target: / | |
c3235553 | 63 | |
93fd4692 | 64 | access_control: |
c5e8ba25 | 65 | - { path: ^/api/salt, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
88924980 | 66 | - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
c3235553 | 67 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
6894d48e | 68 | - { path: ^/forgot-password, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
371ac69a | 69 | - { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
c3235553 | 70 | - { path: ^/, roles: ROLE_USER } |