How do I configure .NET web service to require all consumers to supply credentials, then verify their validity against database table?
How do I configure .NET web service to require all consumers to supply credentials,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re using class ASP.NET ASMX Web Services, I would suggest you download Microsoft’s Web Service Enhancements 3.0. That will enable you to properly support WS-Security.
You could also use custom SOAP Headers, but that method doesn’t conform to WS-Security standards and could cause interoperability problems if you’re consuming the services from a non-.NET platform.
If you’re using WCF, you just need to configure your binding to use the proper type of security. Take a look at Bindings and Security. It’s a broad overview and you’ll have to dig a little deeper to get the specifics for your type of binding.