Bruno
Bruno

Reputation: 563

Silverlight Authentication Without RIA Services?

I would like to know if it’s possible to do use authentication in Silverlight 5 without having to use RIA Services. I am using Entity Framework to connect to my database. I am also using the Business Application template. I have created a custom membership provider through which I am able to validate user credentials and can add new users. However, if I want to restrict content on the app based on which user is logged on, I have no way of doing. I believe that if I create a RIA Services Domain Context I can potentially check user information via WebContext.Current.User. Is there a way to get this type of information without RIA? Perhaps a WCF service of some sort?

Upvotes: 0

Views: 391

Answers (1)

Wiktor Zychla
Wiktor Zychla

Reputation: 48230

Once I wrote a tutorial on how to share forms authentication between your web app and a silverlight app. This works without ria, uses guarded wcf. You can even fine tune the access to individual roles.

http://netpl.blogspot.com/2010/04/aspnet-forms-authentication-sharing-for.html

Upvotes: 1

Related Questions