Securing Methods in Webservices
From: Jose Fco Bonnin (jose@payvision.com)
Date: 02/20/03
- Next message: |{evin: "Re: Use Roles with Forms auth ans SQL?"
- Previous message: AnandVishy: "CAS policy in ASP.NET"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Jose Fco Bonnin" <jose@payvision.com> Date: Thu, 20 Feb 2003 17:02:54 +0100
Hello,
I would like to secure some methods on our webservices to allow that
only our own strong named components can access.
To do it I created a key file with the utility "sn.exe -k Keys.snk",
then I added the key file in the assembly of our webservice and in the
assembly of the component with "[assembly:
AssemblyKeyFile(@"..\..\..\Keys.snk")]", in the webmethod I also added the
attribute [StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand,
PublicKey="xxx")] where xx is the public key that I got taking a look with
"sn.exe -tp Keys.snk".
But then I can't reference this method, I used the same system to work
with windows forms and windows library's. How can I do something similar
with Web Services?
Thank you.
Jose.
- Next message: |{evin: "Re: Use Roles with Forms auth ans SQL?"
- Previous message: AnandVishy: "CAS policy in ASP.NET"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|