Securing Methods in Webservices

From: Jose Fco Bonnin (jose@payvision.com)
Date: 02/20/03


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.



Relevant Pages

  • Re: Opensshd connection lost
    ... Given that you are on windows I would guess that something has put CRLF into the file. ... The key file should be one record per key with no white space. ... Se recebeu esta mensagem por engano, por favor notifique imediatamente por e-mail o remetente e apague esta mensagem do seu sistema. ...
    (SSH)
  • Re: Software Deployment
    ... This is default Windows ... If a key file is missing, ... deployment) Deploys OK, but if a user goes to their add/remove programs ... SP2 server with Windows XP SP2 clients. ...
    (microsoft.public.windows.group_policy)
  • Re: CD and DVD burning
    ... It wouldn't be in the Windows directory. ... On my brother's system it was in the root as well. ... key file is that MEDIACTR.cab file. ... CMPNENTS directory is under the root directory and not in the windows ...
    (microsoft.public.windows.mediacenter)