]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/security.yml
create an Entry with a User in parameter
[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
88924980
NL
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: /
c3235553 55
93fd4692 56 access_control:
88924980 57 - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY }
c3235553
NL
58 - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
59 - { path: ^/, roles: ROLE_USER }