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