Question: I have a document management system, and I am building a Web-Service interfaces to the database.
Everything works so far, just that right now, it’s totally unsecured, everybody can access it.
How can I incorporate password or private-public key authentication ?
I can only find ‘best practises’ and using ‘windows user’ or passport authentication.
But I need authentication from a user and password stored in the database, or better for an RSA private-key stored for each web-service user in the database…
Edit:
I have to use the .NET Framework 2.0 in an ASP.NET environment
The solution is to write an own http module with a mixture of code provided by MSDN and CodeProject. Including own fixes of MS bugs, and then add this custom soap header to the web service.
This is the module: