I use symposiumfony Standard 2.0.0TABE1 andtries to configure http://basiccreditation really the same as in .this book chapter
security:
encoders:
SymfonyComponentSecurityCoreUserUser: plaintext
providers:
main:
users:
foo: { password: testing, roles: ROLE_USER }
firewalls:
main:
pattern: /.*
http_basic: true
logout: true
access_control:
- { path: /.*, role: ROLE_USER }
问题在于,我试图打开一页,并提交用户名称“foo”和密码“测试”,这只是空话,要求我有定论或显示错误。
复制问题的步骤:
- Copy security configuration from http://symfony.com/doc/current/book/security/overview.html#configuration and past it to security.yml file
- Refresh app home page
- Enter valid credentials
预期的行为是看到主页,但照样显示。
Does anyone know why that happens and how to fix it?