title: System profiler get me user logged in but not authenticated
body: <p>I thought I was finally able to properly manage the login with Symfony 2. But when I get redirected to another page after login, the System Profiler gives me back that the user is logged in but not authenticated and the role: <code>ROLE_USER</code>.</p>
  
  <p>If I go back to the login page, however, I correctly that the user is logged in, is authenticated and has the role: <code>ROLE_USER</code></p>
  
  <p>I hope it's a stupid mistake because I started using Symfony recently.
  Hope someone has already encountered this problem? Can anyone help me?</p>
  
  <p><strong>Edit 1</strong>:
  This is my security.yml</p>
  
  <pre><code>jms_security_extra:
      secure_all_services: false
      expressions: true
  
  security:
      encoders:
          Wearplay\UserBundle\Entity\User: 
              algorithm:        sha1
              encode_as_base64: false
              iterations:       1
  
      role_hierarchy:
          ROLE_ADMIN:       ROLE_USER
          #ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
  
      providers:
          user:
              entity: { class: WearplayUserBundle:User }
  
      firewalls:
          main:
              pattern:  ^/
              provider: user
              form_login:
                  check_path: login_check
                  login_path: login
                  default_target_path: /home
              anonymous: true
              remember_me:
                  key:      "%secret%"
                  lifetime: 2232000 
                  path:     /
                  domain:   ~ 
              logout:
                  path:   /logout
                  target: /home
  
          #secured_area:
          #    provider: user
          #    pattern:    ^/
          #    form_login:
          #        check_path: login_check
          #        login_path: login
          #        default_target_path: home
          #    anonymous: ~
  
      access_control:
          - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: http }
          #- { path: ^/logout, roles: IS_AUTHENTICATED_FULLY, requires_channel: https }
          #- { path: ^/home, roles: ROLE_USER, requires_channel: https }
          #
          # You must uncomment the two following rules to restrict access to paths
          # starting with the /_internal prefix to only localhost
          #- { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
          #- { path: ^/_internal/secure, roles: ROLE_NO_ACCESS }
  </code></pre>