Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Working
- security.config:
- providers:
- main:
- users:
- florian: { password: *****, roles: ROLE_USER }
- firewalls:
- login: { pattern: /login, security: true, anonymous: true }
- profiler: { pattern: /_profiler.*, security: true, anonymous: true }
- login_check: { pattern: /login_check, security: true, anonymous: true, form_login: true }
- main:
- pattern: /.*
- form_login: true
- anonymous: true
- logout: { path: /logout, target: /login }
- access_control:
- - { path: /login, role: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: /login_check, role: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: /customer.*, role: ROLE_USER }
- - { path: /.*, role: IS_AUTHENTICATED_ANONYMOUSLY }
- fos_user.config:
- db_driver: odm
- class:
- model:
- user: Application\AppUserBundle\Document\User
- #
- # NOT WORKING
- #
- security.config:
- providers:
- fos_user:
- password_encoder: &password_encoder
- sha1
- id: fos_user.user_manager
- firewalls:
- public:
- pattern: .*
- form_login:
- login_path: /login
- use_forward: false
- check_path: /login-check
- failure_path: null
- always_use_default_target_path: false
- default_target_path: /
- target_path_parameter: _target_path
- use_referer: false
- logout: true
- anonymous: true
- fos_user.config:
- db_driver: mongodb
- encoder:
- alorithm:
- <<: *password_encoder
- class:
- model:
- user: Application\AppUserBundle\Document\User
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement