Solved

Web Service Authentication

Posted on 2008-06-18
1
887 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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