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

Controlling a user's access to services and service methods

Applies to Silverlight 4, 5

In the previous recipes, we've learned how to track a user's identity. However, most applications that need a user's identity need it to do something with it, for example, restricting access to a certain service or a service method so that only an authenticated user can access it. This will make sure that our service can't be freely used by anyone. Only the users we allow in will be able to use it.

In this recipe, you'll learn how to restrict access to a service or service method to authenticated users.

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 ...

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