I need to build a RESTfull web service using OAuth, bearer access_token
and refresh_token
. Authentication and authorization should be done by checking existing sql db.
The web api template, provided by VS2013 writes/reads in/from its own local sqlexpress db by this connectionString:
connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-WebApiTest-20150423094253.mdf;Initial Catalog=aspnet-WebApiTest-20150423094253;Integrated Security=True"
After hours of googling, I just got tutorials and examples, which do not match with my issue.
So how can I bind my db into the project for authentication/athorization?