views:

120

answers:

1

I started a Silverlight 4 RIA Services application with the Navigation Application template, instead of the Business Application template.

Now I want to add authentication to that application (to protect a page from unauthenticated users)

I've added an AuthenticationService to the project, but I'm not sure what the steps are now to get it actually working and there doesn't seem to be a way to "upgrade" to the business application template.

I can add the [RequiresAuthentication] attribute to some of the normal service methods, but I cannot figure out how to allow the user to log in or prevent a user from opening a specific page.

Is there any guidance for an "upgrade" like this?

+1  A: 

You need to configure the hosting ASP.Net App to enable forms authentication, which will probably require the configuration of an authentication provider.

Try this http://msdn.microsoft.com/en-us/library/ee707353(VS.91).aspx

  • edit: doh moments too late ;)
Doobi
No problem, it helped :) thnx
TimothyP