Using WIF with WCF Service & Silverlight

May 9, 2011 at 2:45 PM


I have developed a custom STS to provide authentication to my Silverlight application and this part is working fine.

The Silverlight application calls WCF Services hosted in a separate web application project and I need to flow the STS credentials down to these services in order to authorise activity. I have followed sample 4, ActiveClientFederation, to try and set up the service as an RP but have run into an issue with the project type used in the sample for the client. As I am using standard Silverlight projects for my client-side Prism modules, I am unable to reference the Microsoft.IdentityModel or System.IdentityModel assemblies and this prevents me from correctly setting up the bindings to use the WIF ws2007FederationHttpBinding. If I update the service references (using VS 2010) in my client modules the update completes but strips out the binding details from the ServiceReferences.ClientConfig file.

Am I missing something here? Is there a different approach to resolving this?

Any help would be greatly appreciated.