views:

45

answers:

0

Hello.

I'm trying to integrate authentication between WPF application and Silverlight application. The users will login in the WPF app first, and they should be authenticated when they run the silverlight app from the browser. The silverlight app is using forms authentication.(through WCF RIA Service)

The main application is Silverlight app. the wpf app is a system tray application that would notify users when some kind of event occurs, notifying users to run the silverlight app. I want the users to log in just once when they start the system tray application.

I'm thinking of two approaches.

  1. Create a WCF service in the server which WPF app will call. then create a forms authentication ticket in the cookie in that service. the silverlight application would be authenticated using the same cookie.
  2. Add a method in the server that would return some kind of authentication token string when the WPF application logs in with ID/PW. then WPF app would be able to pass that token to silverlight application.

are either of two approaches valid? if not, please provide me with some guidance. thanks