views:

65

answers:

0

I've had an issue with security in my WCF server, so now we authenticate each request via ServiceSecurityContext.Current.WindowsIdentity.

However now, for other reasons, in case that value is null, we need to access the endpoint corresponding to the service being requested and get the ServicePrincipalName or UserPrincipalName supplied by the client.

I have a WCF server that hosts several classes of services and I need to verify credentials in each service, in each accessed method.

My question is: how do i access those credentials? how do i access an incoming request in a WCF service (in a separate class), verify the endpoint that is being used, and access the corresponding principal names supplied by the client?

Txs in advance