Web Service Security
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebservices' list.


JBlankenship@overnite.com
I would like to add a level of security to a web service that
would only allow the service to accept request from specified
clients/URLS. An example of this would be a web service that only excepts
requests from www.microsoft.com and www.mycompany.com. I have thought
about using System.Net.WebPermission to build a connectlist of URIs and there permission settings and then
comparing the contents of the connectlist to the url of the calling
client. I was hoping that someone out there give me some advice on this
subject.

Thanks,
Jon
Reply to this message...
 
    
ramesh seshadri

If you are using IIS as your web server, I believe it offers this exact
functionality. have you tried that ?

ramesh

[Original message clipped]

------------------------------------------------------------
Work An Hour for kids, with Asha for Education.
http://www.workanhour.com

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Reply to this message...
 
    
Peter Brunone
Jon,

Have you checked into using web.config for this? I haven't tried it
yet, but that would be my first place to look.

-Peter
-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: Monday, July 01, 2002 3:11 PM
To: aspngwebservices
Subject: [aspngwebservices] Web Service Security

I would like to add a level of security to a web service that
would only allow the service to accept request from specified clients/URLS.
An example of this would be a web service that only excepts requests from
www.microsoft.com and www.mycompany.com. I have thought about using
System.Net.WebPermission to build a connectlist of URIs and there permission
settings and then comparing the contents of the connectlist to the url of
the calling client. I was hoping that someone out there give me some advice
on this subject.

Thanks,
Jon | [aspngwebservices] member Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT |
http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
JBlankenship@overnite.com
Not yet. Can this be done under the Directory Security tab?

Thanks,
Jon

"ramesh seshadri" <Click here to reveal e-mail address>
07/01/2002 10:04 PM
Please respond to "aspngwebservices"

To: "aspngwebservices" <Click here to reveal e-mail address>
cc:
Subject: [aspngwebservices] Re: Web Service Security

If you are using IIS as your web server, I believe it offers this exact
functionality. have you tried that ?

ramesh

[Original message clipped]

------------------------------------------------------------
Work An Hour for kids, with Asha for Education.
http://www.workanhour.com

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
JBlankenship@overnite.com
I have been looking into it but so far have not figured out what
setting I need. The closest I have come is locating the documentation to
the SiteIdentityPermission Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecuritypermissionssiteidentitypermissionclasstopic.asp.
I may be able to use this to check at the code level.

Thanks,
Jon

"Peter Brunone" <Click here to reveal e-mail address>
07/01/2002 05:53 PM
Please respond to "aspngwebservices"

To: "aspngwebservices" <Click here to reveal e-mail address>
cc:
Subject: [aspngwebservices] RE: Web Service Security

Jon,

Have you checked into using web.config for this? I haven't tried it yet,
but that would be my first place to look.

-Peter
-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: Monday, July 01, 2002 3:11 PM
To: aspngwebservices
Subject: [aspngwebservices] Web Service Security

I would like to add a level of security to a web service that
would only allow the service to accept request from specified
clients/URLS. An example of this would be a web service that only excepts
requests from www.microsoft.com and www.mycompany.com. I have thought
about using System.Net.WebPermission to build a connectlist of URIs and there permission settings and then
comparing the contents of the connectlist to the url of the calling
client. I was hoping that someone out there give me some advice on this
subject.

Thanks,
Jon | [aspngwebservices] member Click here to reveal e-mail address = YOUR ID | http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT | http://www.asplists.com/search = SEARCH Archives
| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Jeffrey Widmer
What you want to use is Host Headers in IIS. This will let you specify that only people who type in specific url's, e.g. http://www.microsoft.com, will be allowed to visit your site. If they type in just the IP address the web site will not be found.

Hope this helps,
-Jeff

---------- Original Message ----------------------------------
From: "ramesh seshadri" <Click here to reveal e-mail address>
Reply-To: "aspngwebservices" <Click here to reveal e-mail address>
Date: Tue, 02 Jul 2002 03:04:08 +0000

[Original message clipped]

Reply to this message...
 
    
JBlankenship@overnite.com
Is there anyway I can do this at the virtual directory level and
not for the whole site? I am looking to do this on a web service by web
service basis and not for the whole site.

Thanks,
Jon

"Jeffrey Widmer" <Click here to reveal e-mail address>
07/02/2002 09:45 AM
Please respond to "aspngwebservices"

To: "aspngwebservices" <Click here to reveal e-mail address>
cc:
Subject: [aspngwebservices] Re: Web Service Security

What you want to use is Host Headers in IIS. This will let you specify
that only people who type in specific url's, e.g. http://www.microsoft.com, will be allowed to visit your site. If they type in just the IP address
the web site will not be found.

Hope this helps,
-Jeff

---------- Original Message ----------------------------------
From: "ramesh seshadri" <Click here to reveal e-mail address>
Reply-To: "aspngwebservices" <Click here to reveal e-mail address>
Date: Tue, 02 Jul 2002 03:04:08 +0000

[Original message clipped]

| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Sachidanandam E K
Check this URLS~!!Here is precise answer for your question.

http://samples.gotdotnet.com/quickstart/aspplus/doc/secureservices.aspx

Sachidanandam.E.K
Member Techinical Staff

HCLT KT-ODC
Click here to reveal e-mail address
-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 02, 2002 7:51 PM
To: aspngwebservices
Subject: [aspngwebservices] Re: Web Service Security

Not yet. Can this be done under the Directory Security tab?

Thanks,
Jon

"ramesh seshadri" <Click here to reveal e-mail address>
07/01/2002 10:04 PM
Please respond to "aspngwebservices"

To: "aspngwebservices"
<Click here to reveal e-mail address>
cc:
Subject: [aspngwebservices] Re: Web Service Security

If you are using IIS as your web server, I believe it offers this exact
functionality. have you tried that ?

ramesh

[Original message clipped]

------------------------------------------------------------
Work An Hour for kids, with Asha for Education.
http://www.workanhour.com

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngwebservices] member Click here to reveal e-mail address YOUR ID | http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Jeffrey Widmer
What about checking the ServerVariables and redirecting if you do not see the domain name that you are interested in?

---------- Original Message ----------------------------------
From: Click here to reveal e-mail address
Reply-To: "aspngwebservices" <Click here to reveal e-mail address>
Date: Tue, 2 Jul 2002 10:03:40 -0500

[Original message clipped]

Reply to this message...
 
    
Liz

Use IIS Admin, click on the virtual directory, open properties, click on
Directory Security, edit IP Address and Domain Name restrictions and do what
you need to do ... you can also set these values programatically with ADSI
if you're so inclined ... you can do this at any level in the hierarchy you
need ... and that includes putting constraints on your .aspx, .asmx or .dll
files AT the file level ...

Using web.config may be a better alternative ... I don't know .. have not
taken the time just yet to figure out how web.config and IIS metabase-based
security interact with each other ...

<Click here to reveal e-mail address> wrote in message news:677456@aspngwebservices...
[Original message clipped]

Reply to this message...
 
    
JBlankenship@overnite.com
Thank you for information. I think I am a step closer here. I believe
that I can use System.Web.HttpContext to retrieve the information.

thanks,
Jon

"Jeffrey Widmer" <Click here to reveal e-mail address>
07/02/2002 10:46 AM
Please respond to "aspngwebservices"

To: "aspngwebservices" <Click here to reveal e-mail address>
cc:
Subject: [aspngwebservices] Re: Web Service Security

What about checking the ServerVariables and redirecting if you do not see
the domain name that you are interested in?

---------- Original Message ----------------------------------
From: Click here to reveal e-mail address
Reply-To: "aspngwebservices" <Click here to reveal e-mail address>
Date: Tue, 2 Jul 2002 10:03:40 -0500

[Original message clipped]

| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
 
System.Net.WebPermission
System.Security.Permissions.SiteIdentityPermission
System.Web.HttpContext




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com