title: Symfony security configuration, check_path goes to defined controller
body: <p>I'm new into symfony, and I'm trying to create my own authentication. (I've external auth system so I've declared my User class and UserProvider)
  I've configured some routes, controllers and security yml, but when I send login form I've end up on error that says </p>
  
  <blockquote>
    <p>Full authentication is required to access this resource.</p>
  </blockquote>
  
  <p>Here is my config for security:</p>
  
  <pre><code>security:
  encoders:
      App\Domain\User\ValueObject\User: bcrypt
  providers:
      UserProvider:
          id: App\Providers\UserProvider
  
  firewalls:
      dev:
          pattern: ^/(_(profiler|wdt)|css|images|js)/
          security: false
      login:
          pattern: ^/login
          anonymous: ~
      login_others:
          pattern: ^/login/.*$
          anonymous: ~
      register:
          pattern: ^/register.*$
          anonymous: ~
      bye:
          pattern: ^/bye
          anonymous: ~
      main:
          provider: UserProvider
          pattern: ^/.*
          form_login:
              # submit the login form here
              check_path: user.login.check
  
              # the user is redirected here when they need to log in
              login_path: /login
          logout:
              path:   /logout
              target: /login
              invalidate_session: false
  
  # Easy way to control access for large sections of your site
  # Note: Only the *first* access control that matches will be used
  access_control:
       - { path: ^/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
       - { path: ^/login/.*$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
       - { path: ^/register.*$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
       - { path: ^/bye$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
       - { path: ^/.+$, roles: ROLE_USER }
  </code></pre>
  
  <p>And my controller for routes looks like this:</p>
  
  <pre><code>    class LoginController extends Controller
  {
      /**
       * @param AuthenticationUtils $authUtils
       * @param TokenStorageInterface $tokenStorage
       * @return Response
       *
       * @Route("/login", name="user.login", methods="GET")
       */
      public function loginAction(
          AuthenticationUtils $authUtils,
          TokenStorageInterface $tokenStorage
      ) {
          if (!is_null($tokenStorage-&gt;getToken()) &amp;&amp; in_array('ROLE_USER', $tokenStorage-&gt;getToken()-&gt;getRoles())) {
              return $this-&gt;redirect($this-&gt;generateUrl('dashboard'));
          }
  
          $error = $authUtils-&gt;getLastAuthenticationError();
          $lastUsername = $authUtils-&gt;getLastUsername();
  
          return $this-&gt;render('user/login.twig', [
              'error'         =&gt; $error,
              'last_username' =&gt; $lastUsername,
          ]);
      }
  
      /**
       *
       * @Route("/login_check", name="user.login.check", methods={"POST"})
       */
      public function loginCheckAction()
      {
  
      }
  </code></pre>
  
  <p>Any idea what I'm doing wrong? I'm almost sure it's configuration problem, but it appears that I don't understand it.</p>