Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###FORM_LOGIN_AUTH
- security.config:
- encoders:
- Symfony\Component\Security\User\User: plaintext
- providers:
- main:
- users:
- foo: { password: bar, roles: ROLE_USER }
- firewalls:
- login: { pattern: /login, security: true, anonymous: true }
- login_check: { pattern: /login_check, security: true, anonymous: true, form_login: true }
- profiler: { pattern: /_profiler.*, security: true, anonymous: true }
- main:
- pattern: /admin.*
- form_login: { check_path: /login_check }
- logout: { path: /logout, target: /login }
- anonymous: true
- public:
- pattern: .*
- anonymous: true
- logout: { path: /logout, target: /login }
- access_control:
- - { path: /admin.*, role: [ ROLE_USER ] }
- - { path: .*, role: IS_AUTHENTICATED_ANONYMOUSLY }
- ####HTTP_BASIC AUTH
- security.config:
- encoders:
- Symfony\Component\Security\User\User: plaintext
- providers:
- main:
- users:
- foo: { password: bar, roles: ROLE_USER }
- firewalls:
- profiler: { pattern: /_profiler.*, security: true, anonymous: true }
- main:
- pattern: /admin.*
- http_basic: true
- anonymous: true
- public:
- pattern: .*
- anonymous: true
- access_control:
- - { path: /admin.*, role: [ ROLE_USER ] }
- - { path: .*, role: IS_AUTHENTICATED_ANONYMOUSLY }
Add Comment
Please, Sign In to add comment