Note that there are some explanatory texts on larger screens.

plurals
  1. POSymfony2 Security problem
    primarykey
    data
    text
    <p>i'm going to adapt my web project (based on symfony2 PR5) to symfony2 PR7. Everything is pretty clear with this migration except the Security bundle. Here is my security configuration:</p> <pre><code>security: encoders: Application\PermissionsBundle\Entity\Stuff: sha1 providers: main: entity: { class: PermissionsBundle:Stuff, property: username} firewalls: main: pattern: .* form_login: check_path: /login-check-admin login_path: /login-admin failure_path: /login-admin logout: true anonymous: true backend: pattern: /admin.* form_login: check_path: /login-check-admin login_path: /login-admin logout: true security: true anonymous: false access_control: - { path: /admin.*, role: ROLE_ADMIN } </code></pre> <p>Routing configuration:</p> <pre><code>_security_login: pattern: /login-admin defaults: { _controller: PermissionsBundle:Security:login } _security_check: pattern: /login-check-admin _security_logout: pattern: /logout-admin _security_status: pattern: /sec_status defaults: { _controller: PermissionsBundle:Security:status } _security_get_username: pattern: /security/get/username defaults: { _controller: PermissionsBundle:Security:getUserName } </code></pre> <p>When I try to authenticate, I get a 404 fpr login checking: Firebug output: <a href="http://impic.ru/uploads/2011/2303/53849205_61601933.jpeg" rel="nofollow">http://impic.ru/uploads/2011/2303/53849205_61601933.jpeg</a></p> <p>Can anybody please help me with this problem? This code works fine in PR5, but not in PR7. Official symfony documentation hasn't changed yet. Maybe I'm missing something?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload