O'Reilly logo

WCF Multi-layer Services Development with Entity Framework Fourth Edition by Mike Liu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hosting a WCF service using basic authentication

In the previous sections, we learned the basic concepts and theories about WCF security. Now, we will do some practical work. We will host a WCF service with basic authentication and then consume this service in a client application.

Since with basic authentication the username and password are transmitted in a Base64 encoded text, SSL will be configured with this authentication mode to enhance the security of the service.

To keep the code simple and to focus only on the security side of the WCF service, HelloWorldService and HelloWorldClient will be used for this practice.

Setting up the service

First, we will set up a copy of HelloWorldService with no authentication. We will enhance this service, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required