Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Web Service Authentication

Posted on 2008-06-18
1
Medium Priority
?
890 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
JuckMan earned 1000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

670 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