aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-12 16:13:40 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-12 16:13:40 +0200
commitfb96ea884532e9804194afd92a98c5c6aecc177e (patch)
treedfcb9a7cd9a1eeac200852ef74f6fc9329e3337c /app/config
parent9c08a891f9bb90bc3f23a575a734283c1ee00ba1 (diff)
parentaf43bd37675954f937720f7b6fbcf78d85928bc5 (diff)
downloadwallabag-fb96ea884532e9804194afd92a98c5c6aecc177e.tar.gz
wallabag-fb96ea884532e9804194afd92a98c5c6aecc177e.tar.zst
wallabag-fb96ea884532e9804194afd92a98c5c6aecc177e.zip
Merge pull request #1362 from wallabag/v2-fosuser
implement FosUser
Diffstat (limited to 'app/config')
-rw-r--r--app/config/config.yml5
-rw-r--r--app/config/security.yml29
2 files changed, 11 insertions, 23 deletions
diff --git a/app/config/config.yml b/app/config/config.yml
index efc815b8..f623ab23 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -152,3 +152,8 @@ liip_theme:
152 # bundle_resource_dir: 152 # bundle_resource_dir:
153 # - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%% 153 # - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%%
154 # - %%dir%%/views/%%bundle_name%%/%%override_path%% 154 # - %%dir%%/views/%%bundle_name%%/%%override_path%%
155
156fos_user:
157 db_driver: orm
158 firewall_name: main
159 user_class: Wallabag\CoreBundle\Entity\User
diff --git a/app/config/security.yml b/app/config/security.yml
index b9c4cbef..98846656 100644
--- a/app/config/security.yml
+++ b/app/config/security.yml
@@ -12,6 +12,8 @@ security:
12 providers: 12 providers:
13 administrators: 13 administrators:
14 entity: { class: WallabagCoreBundle:User, property: username } 14 entity: { class: WallabagCoreBundle:User, property: username }
15 fos_userbundle:
16 id: fos_user.user_provider.username
15 17
16 # the main part of the security, where you can set up firewalls 18 # the main part of the security, where you can set up firewalls
17 # for specific sections of your app 19 # for specific sections of your app
@@ -26,31 +28,12 @@ security:
26 anonymous: ~ 28 anonymous: ~
27 29
28 secured_area: 30 secured_area:
29 pattern: ^/ 31 pattern: ^/
30 anonymous: ~
31 form_login: 32 form_login:
32 login_path: /login 33 provider: fos_userbundle
33 34 csrf_provider: security.csrf.token_manager
34 use_forward: false
35
36 check_path: /login_check
37
38 post_only: true
39
40 always_use_default_target_path: false
41 default_target_path: /
42 target_path_parameter: _target_path
43 use_referer: true
44
45 failure_path: null
46 failure_forward: false
47
48 username_parameter: _username
49 password_parameter: _password
50
51 csrf_parameter: _csrf_token
52 intention: authenticate
53 35
36 anonymous: true
54 remember_me: 37 remember_me:
55 key: "%secret%" 38 key: "%secret%"
56 lifetime: 31536000 39 lifetime: 31536000