]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/security.yml
Installation should be launch manually
[github/wallabag/wallabag.git] / app / config / security.yml
CommitLineData
93fd4692 1security:
93fd4692 2 encoders:
c3235553
NL
3 Wallabag\CoreBundle\Entity\Users:
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
NL
13 administrators:
14 entity: { class: WallabagCoreBundle:Users, 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:
c3235553
NL
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: ~
93fd4692 29 form_login:
c3235553
NL
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
93fd4692 52 logout:
c3235553
NL
53 path: /logout
54 target: /
55
93fd4692 56 access_control:
c3235553
NL
57 - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
58 - { path: ^/, roles: ROLE_USER }