Solved

Password protect WCF Service hosted on IIS7 public internet

Posted on 2011-03-25
4
615 Views
Last Modified: 2012-05-11
I have a simple WCF service that I want to publish to the public internet via IIS 7. My original plan was to publish the service to iis and turn on WIndows Authentication.

But I was reading some articles on the internet about doing such a thing and it was not advised. Instead some were suggesting that you use a x509 certificate. This did not look too appealing because the amount of configuration that was needed. And does this mean that the persons consuming the service will need a certificate as well?

I just want to simply give out the url of the service along with a username and password for each user and that be that.

What is the easiest (but secure) way to accomplish this task?
0
Comment
Question by:dpbouchard
  • 3
4 Comments
 
LVL 7

Expert Comment

by:nbove
ID: 35216795
You can do one of two methods.  You can either have all of your methods also take username and password parameters.  Or you can set up an authentication service that takes a user name and password and issues an authentication token back.  Then your methods just have to take the authentication token as a parameter.
0
 
LVL 1

Author Comment

by:dpbouchard
ID: 35217172
Not exactly what I was looking for. I am looking for some way to just put authentication on the website or the folder itself to that IIS will issue a 401 requesting authentication.

I am pretty sure I can enable Windows Authentication and make this work. I am just told that it is not very secure.

Any ideas?
0
 
LVL 1

Accepted Solution

by:
dpbouchard earned 0 total points
ID: 35233100
I resolved this issue by using a local user account to the server itself in addition to adding a ssl certificate. Thanks for the help!
0
 
LVL 1

Author Closing Comment

by:dpbouchard
ID: 35304264
Resolved issue
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 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

18 Experts available now in Live!

Get 1:1 Help Now