]>
Commit | Line | Data |
---|---|---|
93fd4692 | 1 | security: |
93fd4692 | 2 | encoders: |
fcb1fba5 | 3 | FOS\UserBundle\Model\UserInterface: sha512 |
93fd4692 | 4 | |
93fd4692 NL |
5 | role_hierarchy: |
6 | ROLE_ADMIN: ROLE_USER | |
c3235553 | 7 | ROLE_SUPER_ADMIN: [ ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ] |
93fd4692 | 8 | |
93fd4692 | 9 | providers: |
c3235553 | 10 | administrators: |
1210dae1 | 11 | entity: { class: WallabagUserBundle:User, property: username } |
a1691859 NL |
12 | fos_userbundle: |
13 | id: fos_user.user_provider.username | |
93fd4692 NL |
14 | |
15 | # the main part of the security, where you can set up firewalls | |
16 | # for specific sections of your app | |
17 | firewalls: | |
5c895a7f JB |
18 | # disables authentication for assets and the profiler, adapt it according to your needs |
19 | dev: | |
20 | pattern: ^/(_(profiler|wdt)|css|images|js)/ | |
21 | security: false | |
22 | ||
fcb1fba5 NL |
23 | oauth_token: |
24 | pattern: ^/oauth/v2/token | |
25 | security: false | |
4c5e5441 | 26 | |
fcb1fba5 NL |
27 | api: |
28 | pattern: /api/.* | |
29 | fos_oauth: true | |
30 | stateless: true | |
cd1298d6 | 31 | anonymous: true |
fcb1fba5 | 32 | |
c3235553 NL |
33 | login_firewall: |
34 | pattern: ^/login$ | |
35 | anonymous: ~ | |
36 | ||
d9169157 | 37 | secured_area: |
a1691859 | 38 | pattern: ^/ |
d9169157 | 39 | form_login: |
a1691859 | 40 | provider: fos_userbundle |
5c895a7f | 41 | csrf_token_generator: security.csrf.token_manager |
d9169157 | 42 | |
a1691859 | 43 | anonymous: true |
5a584614 | 44 | remember_me: |
5c895a7f | 45 | secret: "%secret%" |
5a584614 NL |
46 | lifetime: 31536000 |
47 | path: / | |
48 | domain: ~ | |
49 | ||
d9169157 J |
50 | logout: |
51 | path: /logout | |
52 | target: / | |
c3235553 | 53 | |
93fd4692 | 54 | access_control: |
88924980 | 55 | - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
2b477030 | 56 | - { path: ^/api/version, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
c3235553 | 57 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
fcb1fba5 | 58 | - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } |
1210dae1 | 59 | - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } |
371ac69a | 60 | - { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
63e40f2d | 61 | - { path: ^/settings, roles: ROLE_SUPER_ADMIN } |
f38e03dc | 62 | - { path: ^/annotations, roles: ROLE_USER } |
07c9b1c9 | 63 | - { path: ^/, roles: ROLE_USER } |