Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # To get started with security, check out the documentation:
- # http://symfony.com/doc/current/security.html
- security:
- encoders:
- Symfony\Component\Security\Core\User\User: plaintext
- # http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
- providers:
- in_memory:
- memory:
- users:
- jacek:
- password: LubiePlacki7
- roles: "ROLE_USER"
- admin:
- password: admin
- roles: "ROLE_ADMIN"
- firewalls:
- # disables authentication for assets and the profiler, adapt it according to your needs
- dev:
- pattern: ^/(_(profiler|wdt)|css|images|js)/
- security: false
- main:
- anonymous: ~
- # activate different ways to authenticate
- http_basic: ~
- # http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
- access_control:
- - {path: ^/restricted,roles: ROLE_USER}
- # form_login: ~
- # http://symfony.com/doc/current/cookbook/security/form_login_setup.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement