title: Problems configuring user authentication by external API on Symfony2
body: <p>I have a problem authenticating users for my new Symfony2 application.</p>
  
  <p>This applications gets all the info through an API, so no database is used. When a user goes to login page, he introduce the user and password in the login form. Then, I have to authenticate him using an API call. This API call returns "false" if it's not a user, and return a token key and a token secret if its a correct user. With this token key and secret, during the user session, I can make all the API requests I need for rendering all the pages of the application. Once the user session is over and token key and secret are erased, the user has to login again.</p>
  
  <p>I don't know really how ti implement that. I read this <a href="http://symfony.com/doc/current/cookbook/security/custom_provider.html" rel="nofollow">http://symfony.com/doc/current/cookbook/security/custom_provider.html</a> and that <a href="http://symfony.com/doc/current/cookbook/security/custom_authentication_provider.html" rel="nofollow">http://symfony.com/doc/current/cookbook/security/custom_authentication_provider.html</a>, and I'm still so lost... :(</p>
  
  <p>Can any one help me?</p>
  
  <p>Thank you so much :)</p>