implement FosUser

This commit is contained in:
Nicolas Lœuillet
2015-08-18 11:08:45 +02:00
parent 9c08a891f9
commit a1691859ca
14 changed files with 138 additions and 307 deletions

View File

@ -152,3 +152,8 @@ liip_theme:
# bundle_resource_dir:
# - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%%
# - %%dir%%/views/%%bundle_name%%/%%override_path%%
fos_user:
db_driver: orm
firewall_name: main
user_class: Wallabag\CoreBundle\Entity\User

View File

@ -12,6 +12,8 @@ security:
providers:
administrators:
entity: { class: WallabagCoreBundle:User, property: username }
fos_userbundle:
id: fos_user.user_provider.username
# the main part of the security, where you can set up firewalls
# for specific sections of your app
@ -26,31 +28,12 @@ security:
anonymous: ~
secured_area:
pattern: ^/
anonymous: ~
pattern: ^/
form_login:
login_path: /login
use_forward: false
check_path: /login_check
post_only: true
always_use_default_target_path: false
default_target_path: /
target_path_parameter: _target_path
use_referer: true
failure_path: null
failure_forward: false
username_parameter: _username
password_parameter: _password
csrf_parameter: _csrf_token
intention: authenticate
provider: fos_userbundle
csrf_provider: security.csrf.token_manager
anonymous: true
remember_me:
key: "%secret%"
lifetime: 31536000