I have a WCF Service, using WSHttpBinding, we need to make it secure so that only our application can talk to the service, no other applications on the server should be able to request/send data from/to it. I see the Username property in the config section
which i can update, but then how to do validate that, can this all be done in the config? can i set the username and password in the web.config of the application and WCF service and what that automatically validate? Otherwise can someone provide an example
I can see, of the code and config files from both client and service on how this is setup.
pdassnyc
Member
221 Points
228 Posts
how to set authentication for WCF service?
Dec 12, 2012 03:46 PM|LINK
Hi,
I have a WCF Service, using WSHttpBinding, we need to make it secure so that only our application can talk to the service, no other applications on the server should be able to request/send data from/to it. I see the Username property in the config section which i can update, but then how to do validate that, can this all be done in the config? can i set the username and password in the web.config of the application and WCF service and what that automatically validate? Otherwise can someone provide an example I can see, of the code and config files from both client and service on how this is setup.
Thanks.
pratikkapadi...
Member
172 Points
32 Posts
Re: how to set authentication for WCF service?
Dec 12, 2012 04:02 PM|LINK
Refer this : http://www.codeproject.com/Articles/96028/WCF-Service-with-custom-username-password-authenti