title: Silex authentication + authorization (UserProvider, SecurityServiceProvider)
body: <p>I'm currently using the Silex framework.</p>
  
  <p>I was wondering which UserProviders and/or SecurityServiceProvider are out there and how they work. In my application I would work with a mysql database controlled by Doctrine dbal (or orm)</p>
  
  <p>I have already found Opauth (<a href="https://github.com/icehero/silex-opauth" rel="nofollow">https://github.com/icehero/silex-opauth</a>).
  But I'm wondering how I can implement this.</p>
  
  <p>Can someone please explain me how this works, explain me the basic authentication + authorization workflow?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>How can I use the login, logout functions in a restfull way? Are there any possibilities to also have a register function with email confirmation?</p>
  
  <p>Thanks</p>