Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > web service restrict clients, custom authentication

Reply
Thread Tools

web service restrict clients, custom authentication

 
 
fred00@gmail.com
Guest
Posts: n/a
 
      12-30-2005
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?

 
Reply With Quote
 
 
 
 
Rodrigo García
Guest
Posts: n/a
 
      01-04-2006
Maybe you could use client certificates and define different policies in the
web service.

"" wrote:

> 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?
>
>

 
Reply With Quote
 
 
 
 
mehdi_mousavi
Guest
Posts: n/a
 
      01-05-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Consuming Web Service from WIndows application when WebService is using Custom Service Account ( Create an Application Pool with a Custom Identity) DNB ASP .Net Security 1 01-22-2008 09:08 PM
Error Consuming Web Service from WIndows application when WebService is using Custom Service Account ( Create an Application Pool with a Custom Identity) DNB ASP .Net Web Services 1 01-20-2008 01:47 PM
Calling Web Service that calls other Web Service with Windows Authentication manuelserpabrandao@gmail.com ASP .Net Web Services 3 06-17-2006 08:14 AM
Calling Web Service that calls other Web Service with Windows Authentication manuelserpabrandao@gmail.com ASP .Net Security 1 06-14-2006 08:55 PM
restrict access to Web Service to certain client applications Athen ASP .Net Web Services 2 08-11-2004 04:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57