Authentication and Authorization Using RIA Services (Article 7 of 7)

  Title Of Each Article Video Included With Each Post
Part 1 Introduction To RIA Services In Silverlight (This Article) 7 Minutes
Part 2 Basic RIA Services And DataGrid With  VS 2010 Tooling 14 Minutes
Part 3 Adding A DataGrid With Connect The Dots DataBinding in VS 2010 13 Minutes
Part 4 Adding a Navigation Page to a Silverlight Business Application Template 11 Minutes
Part 5 Adding Speakers Page Template With Converters In Visual Studio 2010 Beta2 11 Minutes
Part 6 Adding A Sessions Page That Includes a Query Parameter In Silverlight VS2010 Beta2 10 Minutes
Part 7 Basic Authentication and Authorization In RIA Services 5 Minutes

[media id=8]

This article is very short.  In the actual presentation, there was not much time to talk about this so a brief overview was done.  Basically, it’s all standard WCF stuff.  The idea is that the Silverlight Business Template adds logging in and supports Authentication just like an application does.  It uses the DomainDataSource to do the bridging between the silverlight clientside app, and the web application.  Authorization is built into the login module also so that you can assign attributes to your domainservice classes to restrict access.

That is, if you only want people who are logged in able to access one of your methods, you simply tag it as follows with the [RequiresAuthentication] attribute.


If you only want a certain logged in user role to be able to access a certain method, you tag it as follows


This of course solve the server side only.  On the client side, you need to call methods that are exposed through the domain data. discusses much of this on the client side.

About Peter Kellner

Peter is a software professional specializing in mobile and web technologies. He has also been a Microsoft MVP since 2007. In addition, he’s a multi-course video author at Pluralsight. To read more about Peter Kellner and his experience click here. For information about how Peter Kellner might be able to help you with your project click here.

Follow me:


  1. Sharla Roeser says:

    Bucket Explorer runs on multiple platform including Linux also. Now it come in new flavor of supports for Amazon Identity and Access Management Service (IAM), Multipart Upload, Distribution on Custom Origin and many more.

  2. Linnea Gallipeau says:

    Sometimes I contemplate if folks truly take time to publish something original, or are they only just dishing out words to fill a site. This surely doesn’t fit that mold. Thank you for taking the time to write with awareness. At times I look at a page and question whether they even proofread it.Fantastic work with this article.


Get every new post delivered to your Inbox

Join other followers: