Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / January 2006

Tip: Looking for answers? Try searching our database.

web service restrict clients, custom authentication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fred00@gmail.com - 30 Dec 2005 16:47 GMT
I want to restrict access to my web service to only approved client
applications.

This has to be done from inside the web service, so Windows
Authentication is not an option.

I would like to allow the possibility of non windows clients, so I am
not sure if any of WS Security is an option. I am pretty sure I will
have to implement a custom authentication.

My first thought was to have the client possess a public key which will
be used to encrypt some data and send it to the web service. If the web
service can decrypt it with it's private key, the client can be assumed
to be authenticated+authorized (also depending on the content of the
encrypted data).

The drawback to this, is each client will need to have the public key
compiled in, and kept secret. I know this is bad form, but in any
senario, won't the client be required to have some form of
authentication compiled into it?

Unless there is some complicated agorithm that could generate a unique
string that the web service could verify that the string was generated
by the algorithm?

There has to be some secure method of doing this, but all the .NET docs
really focus on windows authentication. Does anyone have any input?
Rodrigo García - 04 Jan 2006 08:15 GMT
Maybe you could use client certificates and define different policies in the
web service.

> I want to restrict access to my web service to only approved client
> applications.
[quoted text clipped - 23 lines]
> There has to be some secure method of doing this, but all the .NET docs
> really focus on windows authentication. Does anyone have any input?
mehdi_mousavi - 05 Jan 2006 09:48 GMT
The method you described is (at least) vulnearable against the "replay
attacks". I'm at the same boat, pal. Please let me know if you find
anything special on the subject.

Cheers,
Mehdi

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.