Groups | Blog | Home
all groups > dotnet web services enhancements > april 2006 >

dotnet web services enhancements : SoapContext in a custom policy assertion


Jacques Marcialis
4/19/2006 1:30:21 AM
Hi,

I'm writting a new custom assertion that log
authentication/authorization on an sql data base and a syslog server. I
need some information of the RequestSoapContext like
RequestSoapContext.Current.IdentityToken.Identity.Name or
RequestSoapContext.Current.IdentityToken.Key.

Unfortunatly, the RequestSoapContext is not accessible in a SoapFilter
inherited class and I use the Context property of the SoapEnvelope
passed as parameter. This context does not contain the information I
need. Does someone know how can I do ?

Thanks
JM
Jacques Marcialis
4/19/2006 9:42:43 AM
Hi Pablo,

Thanks a lot. I made a mistake in the assertions order, it's on the
server and the client.

Now I can authorize connexions with the client certificate
Distinguished Name requesting a database. I can't use the Autorization
object in the policy file because of the change frequency of my client
list (thanks for your response on my previous post :
http://groups.google.com/group/microsoft.public.dotnet.framework.webservices.enhancements/browse_thread/thread/62ea8912a41812c8/db041272d6dec7f8?q=jacques&rnum=3#db041272d6dec7f8
).


Now I have another questions : Is there a way to retreive the client
certificate KeyIdentifier in the SoapContext ?

++
JM
Jacques Marcialis
4/21/2006 12:53:36 AM
Hi Pablo,

I'm thinking to the KeyIdentifier in Base64 or Hexa format
AddThis Social Bookmark Button