302 status upon login form submission to login_check route
<p>Good evening,</p>

<p>I recently installed symfony3, meaning I created my user entity, loaded user fixtures, set up firewall/provider/form_login entries in the security configuration file, as well as implementing a security controller to handle the /login route.</p>

<p>I'm now stuck at trying to log in the application using the authentication mechanism embeded with SF.</p>

<p>When hitting <code>/</code>, I get redirected to <code>/login</code>and the login form is being rendered as expected. But upon submission (to <code>/login_check</code>) via post method, SF replies with a 302 and redirects me back to the login form.</p>

<p><code>/login_check</code> route is supposed to be handled by SF right ? So I expected some exception to arise, but none did though.</p>

<p>Seams to be a firewall issue as enlightened in <a href="https://stackoverflow.com/questions/28088982/symfony2-6-login-check-goes-to-error-302-and-application-doesnt-connect">this thread</a>, but it did not help me.</p>

<p>My security conf file:</p>

<pre><code>security:
    encoders:
        AppBundle\Entity\User:
            algorithm: bcrypt
            cost: 12
    providers:
        ent_provider:
            entity:
                class: AppBundle:User
                property: email
    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        login:
            pattern:   ^/(login|register|resetting)$
            security: false
            anonymous: ~
        app:
            pattern: ^/
            anonymous: false
            provider: ent_provider
            form_login:
                login_path: /login
                check_path: /login_check
</code></pre>

<p>Can someone please help me pointing out what's wrong with my security configuration ? (Or anything else ...)</p>

<p>Thank you !</p>