]>
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: | |
fcb1fba5 NL |
18 | oauth_token: |
19 | pattern: ^/oauth/v2/token | |
20 | security: false | |
21 | api: | |
22 | pattern: /api/.* | |
23 | fos_oauth: true | |
24 | stateless: true | |
cd1298d6 | 25 | anonymous: true |
fcb1fba5 | 26 | |
c3235553 NL |
27 | login_firewall: |
28 | pattern: ^/login$ | |
29 | anonymous: ~ | |
30 | ||
d9169157 | 31 | secured_area: |
a1691859 | 32 | pattern: ^/ |
d9169157 | 33 | form_login: |
a1691859 NL |
34 | provider: fos_userbundle |
35 | csrf_provider: security.csrf.token_manager | |
d9169157 | 36 | |
a1691859 | 37 | anonymous: true |
5a584614 NL |
38 | remember_me: |
39 | key: "%secret%" | |
40 | lifetime: 31536000 | |
41 | path: / | |
42 | domain: ~ | |
43 | ||
d9169157 J |
44 | logout: |
45 | path: /logout | |
46 | target: / | |
c3235553 | 47 | |
93fd4692 | 48 | access_control: |
88924980 | 49 | - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
c3235553 | 50 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
fcb1fba5 | 51 | - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } |
1210dae1 | 52 | - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } |
371ac69a | 53 | - { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
c3235553 | 54 | - { path: ^/, roles: ROLE_USER } |