HighTechTalks DotNet Forums  

How to authenticate the client of my assembly

Dotnet Security microsoft.public.dotnet.security


Discuss How to authenticate the client of my assembly in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
adriano.labate@romandie.com
 
Posts: n/a

Default How to authenticate the client of my assembly - 03-12-2007 , 04:46 AM






Hi,

I am really new to .NET security. I hope that someone could help me or
give hints to resolve this quite simple problem :

I have to develop a .NET application that will connect to a database.
The assembly has to be called by a .NET Windows service issued by a
partner.

I want to be sure that ONLY this .NET windows service will call my
assembly and not another app that would like to access the database
through my assembly.

So my question is :
How to obtain authentication of the client of my assembly?

The security domain is very large for .NET, so if you have some hints
about a way to resolve the authentication you're the welcomed.

Best regards,
Adriano Labate


Reply With Quote
  #2  
Old   
Dominick Baier
 
Posts: n/a

Default Re: How to authenticate the client of my assembly - 03-12-2007 , 07:11 AM






Hi,

there is not really a bullet proof way of doing this...

what you could do is to check the strong name of the caller - you could use
Assembly.GetCallingAssembly and extract the strong name from there...

But be aware that if someone physically owns your assembly - he can poke
around in it (using reflector) and will find ways around that protection...

The only solution would be to run all the code in partial trust - which is
not really realistic in your case...


-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Quote:
Hi,

I am really new to .NET security. I hope that someone could help me or
give hints to resolve this quite simple problem :

I have to develop a .NET application that will connect to a database.
The assembly has to be called by a .NET Windows service issued by a
partner.

I want to be sure that ONLY this .NET windows service will call my
assembly and not another app that would like to access the database
through my assembly.

So my question is :
How to obtain authentication of the client of my assembly?
The security domain is very large for .NET, so if you have some hints
about a way to resolve the authentication you're the welcomed.

Best regards,
Adriano Labate



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.