title: ServiceStack Authentication with Existing Database
body: <p>I've been looking at ServiceStack and I'm trying to understand how to use BasicAuthentication on a service with an existing database. I would like to generate a public key (username) and secret key (password) and put that in an existing user record. The user would then pass that to the ServiceStack endpoint along with their request.</p>
  
  <p><strong>What do I need to implement in the ServiceStack stack to get this working?</strong></p>
  
  <p>I have looked at both IUserAuthRepository and CredentialsAuthProvider base class and it looks like I should just implement IUserAuthRepository on top of my existing database tables.</p>
  
  <p>I am also trying to figure out what is the bare minimum I should implement to get authentication working. I will not be using the service to Add or Update user access to the Service, but instead using a separate web application.</p>
  
  <p>Any help and past experiences are greatly appreciated.</p>