Securing WCF Services with Silverlight, Application Services and a ServiceAuthorizationManager

This is a Silverlight / ASP.NET AJAX Application services sample developed in Visual Studio 2010
Click here for links to run the application / download the source code.

This application takes advantage of ASP.NET AJAX application services authentication and implements a single IIS hosted WCF service that is protected from activation with a custom WCF ServiceAuthorizationManager descendant.

This implementation is using the standard ASP.NET 2.0 membership database installed in a SQL Server 2008 database. When running the sample use the following credentials:

  • Username: sl1
  • Password: password!

Prior to logon, attempted activation of the WCF service is prevented.
After logon, WCF service activation is enabled and service methods can be called by the authorized user.

Secure WCF

Read me
Run the sample
Download the source code