O'Reilly logo

Microsoft Silverlight 5 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

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

Tracking a user's identity — a custom authentication service

Applies to Silverlight 4, 5

Windows authentication, as we've used in the previous recipe, is very suitable for internal environments. However, if you're publishing a public Silverlight application, you typically require the user to enter his or her credentials. Besides that, the User object itself might be different: it might have extra properties; it might be an Employee object from your database.

In this recipe, we'll learn how we can achieve this kind of authentication.

Getting ready

Before getting started, you've got to make sure the correct SDK and assemblies to enable WCF RIA Services are available. Please refer to the recipe Setting up a data solution to work with WCF RIA Services ...

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