]>
Commit | Line | Data |
---|---|---|
1 | security: | |
2 | encoders: | |
3 | Wallabag\CoreBundle\Entity\Users: | |
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:Users, 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 | login_firewall: | |
23 | pattern: ^/login$ | |
24 | anonymous: ~ | |
25 | ||
26 | # secured_area: | |
27 | # pattern: ^/ | |
28 | # anonymous: ~ | |
29 | # form_login: | |
30 | # login_path: /login | |
31 | # | |
32 | # use_forward: false | |
33 | # | |
34 | # check_path: /login_check | |
35 | # | |
36 | # post_only: true | |
37 | # | |
38 | # always_use_default_target_path: true | |
39 | # default_target_path: / | |
40 | # target_path_parameter: redirect_url | |
41 | # use_referer: true | |
42 | # | |
43 | # failure_path: null | |
44 | # failure_forward: false | |
45 | # | |
46 | # username_parameter: _username | |
47 | # password_parameter: _password | |
48 | # | |
49 | # csrf_parameter: _csrf_token | |
50 | # intention: authenticate | |
51 | # | |
52 | # logout: | |
53 | # path: /logout | |
54 | # target: / | |
55 | ||
56 | access_control: | |
57 | - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } | |
58 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } | |
59 | - { path: ^/, roles: ROLE_USER } |