Solved

Web Service Authentication

Posted on 2008-06-18
1
883 Views
Last Modified: 2013-12-16
I've developed a web service that I want to require the client to pass a username / pwd to invoke the web service. The web service will run on a server that's part of an Active Directory windows domain. The username / password will exist in the Active Directory domain. I'm thinking that I want to use "Digest Authentication" as the authentication provision for the service based on the requirements above. Does anyone disagree or see a more suitable authentication provision.

Can anyone provide some code examples of the call on the client (and any code needed in the Web Service) to authenticate based on "Digest Authentication"
0
Comment
Question by:Jeffreymarcum
1 Comment
 
LVL 5

Accepted Solution

by:
JuckMan earned 250 total points
ID: 21836246
Here is a code snippet that might help you..

MyWebSerivce service1 = new MyWebService();
MyWebService.UserCredentials myCredentials = new MyWebService.UserCredentials();
myCredentials.userid = "UserId";
myCredentials.password = "password";
service.UserCrdentialsValue = myCrdentials;
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now