Securing a WCF service in Silverlight 3.0

Rating: No reviews yet
Downloads: 611
Released: Feb 5, 2010
Updated: Feb 5, 2010 by d4moon
Dev status: Stable Help Icon

Recommended Download

Source Code
source code, 92K, uploaded Feb 5, 2010 - 611 downloads

Release Notes

Project Summary

One of the little known features when using WCF with Silverlight 3, is that it now supports securing your WCF service with a custom username & password. In Silverlight 2, securing your WCF service with custom credentials wasn’t straightforward, you either had to manipulate the headers to send the username and password or rely on the browser to perform authentication.

Complete step by step tutorial can be found on Silverlight Tips here:

Development Summary

1. specify the security authentication mode

The tracking class is defined in your Silverlight project, it receives tracking parameter from anywhere in your Silverlight code and passes the parameters to a Java Script function to be sent to the analytics software using this method:

<security authenticationMode="UserNameOverTransport"/>

2. configure your WCF service to use SSL

3. set the userNamePasswordValidationMode and customUserNamePasswordValidatorType

4. implement a validator class

Reviews for this release

No reviews yet for this release.