Giving the user access to the .Net WCF service using Windows authentication mode and Message Level security

I have a WCF service that should use Windows authentication and message-level security. The WCF service will be an intranet service.

What I need to do is allow one user to say "domain \ user1" to access this service?

I want all other users to be denied access.

+7
source share
1 answer

You can do this in your web.config:

<system.web> <authentication mode="Windows" /> <authorization> <allow users="DOMAIN\user1" /> <deny users="*" /> </authorization> </system.web> 
+4
source

All Articles