Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security:
- firewalls:
- secured_area:
- pattern: ^/
- anonymous: ~
- form_login:
- login_path: /login
- check_path: /login_check
- # by default, the login form *must* be a POST, not a GET
- post_only: true
- # login success redirecting options (read further below)
- always_use_default_target_path: false
- default_target_path: /
- target_path_parameter: _target_path
- use_referer: false
- # field names for the username and password fields
- username_parameter: _username
- password_parameter: _password
- # csrf token options
- csrf_parameter: _csrf_token
- intention: authenticate
- logout:
- path: /logout
- target: /
- # providers:
- # in_memory:
- # users:
- # ryan: { password: ryanpass, roles: 'ROLE_USER' }
- # admin: { password: kitten, roles: 'ROLE_ADMIN' }
- providers:
- main:
- entity: { class: Triii\TebBundle\Entity\Utilisateur, property: username }
- encoders:
- Symfony\Component\Security\Core\User\User: plaintext
- access_control:
- - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: ^/, roles: ROLE_ADMIN }
Add Comment
Please, Sign In to add comment