Integrating Security Roles into Silverlight Applications–TechEd 2011 Talk

image

I had the opportunity to give a talk at TechEd 2011 about integrating security roles, user names, etc. into Silverlight applications which is always a fun experience. Because Silverlight runs in a sandbox and doesn’t have direct access to the IPrincipal or IIdentity objects it can be challenging to work with security when using WCF services or REST APIs (WCF RIA Services actually makes it pretty easy though). In this talk I discuss different options for securing a Silverlight application, discuss options for accessing user names and roles, and build a service that can serve up this type of information based upon Windows Authentication. I also cover how to create a SecurityManager class that can be used to call the security service asynchronously and expose user name and role data to ViewModel classes. Finally, I talk about how IISExpress can be used to work in a more “real-world” type of development environment when it comes to security.

Download the slides and code from the talk below.

Download Code

comments powered by Disqus

5 Comments

  • Very good stuff, thanks a lot...

  • Very informative session Dan. You touched on Active Directory. Could you blog or post an example of how to integrate AD with Silverlight? I'm new to Silverlight and have a requirement to do this in an upcoming project. Thanks again!

  • Mark:

    Thanks. The sample code above demonstrates how to grab the groups that a user is a member of and integrate them into a Silverlight app. Check out the SecurityRepository class for a sample that should get you started.

    Dan

  • Nice talk, but the recording on Channel 9 wasn't complete, so I thought I would download your demo code, but the Download Code link does not seem to work.

  • Hi Markus:

    Yeah, the mic apparently had a problem so there isn't a good recording unfortunately. However, the download code link does work (just tried it) so give it another shot. Here's the direct link:

    http://dl.dropbox.com/u/6037348/Silverlight/SilverlightSecurityRolesTechEd.zip

    Dan

Comments have been disabled for this content.