Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4097576
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:11:28+00:00 2026-05-20T20:11:28+00:00

We have a few existing web services which require some sort of basic security

  • 0

We have a few existing web services which require some sort of basic security to prevent unauthorised third parties from making calls against the services.

If possible it would be best to avoid having to change the services at all. Like adding extra parameters to the service methods to pass a token for each call.

One idea (if possible) is to have an IIS module which intercepts all calls to the services and checks the header for a token. When the token is correct it lets the request through or otherwise cancels it. This way third parties only need to pass an extra http header field once we give them their key and we don’t have to change the services at all.

This raises the questions:

Is it even possible to do this with a managed IIS module? (Or unmanaged if necessary). And if so, how hard is it to pass extra header fields when connecting to a web service with WCF or Web References in Visual Studio.

If there are other options i’d like to hear them if they fit my requirements. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:11:28+00:00Added an answer on May 20, 2026 at 8:11 pm

    You can use Basic/Digest/Windows Authentication. You can set this in IIS. It is rather trivial to use. Microsoft has a run-through post on this here. This is easy to setup in Visual Studio.

    More in-depth information and step-by-step instructions in this 15 seconds article on securing web services with this method.

    Neither of these require you to change the web service itself. But these only offer basic security. Using SSL, as another user suggested, can offer a higher level of security, but requires the web service to run in its own (sub) domain or application.

    If you eventually do consider changes your web service and adding authentication to it, consider reading this CodeProject article.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have few different applications among which I'd like to share a C# enum.
I have a few C# .dll projects which are common to many applications. Currently,
I have a simple task. I have an existing project with a web service
i have a input tag which is non editable, but some times i need
I have a RIA service (CustomDomainService), which is composed by few methods that need
I am enhancing an existing web application and I have created a new database
I have a fairly standard ASP.Net web application which is used via mobile safari
I have few asynchronous tasks running and I need to wait until at least
I'm a newbie to pgsql. I have few questionss on it: 1) I know
How do I create subdomains in ASP.NET? I have few links on my homepage(Home.aspx)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.