Print Page | Close Window

Adding security features to an existing project

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2346
Printed Date: 29-Jul-2026 at 10:05am


Topic: Adding security features to an existing project
Posted By: CodeNameTech
Subject: Adding security features to an existing project
Date Posted: 03-Dec-2010 at 1:07pm
I have been experimenting with the new 'DevForce Silverlight Business Application' template that was released with version 6.0.6.  I am specifically interested in the integrated security features, using the ASP.NET membership provider (authentication, authorization, roles, etc.)

My questions are:  
  • If I have an existing DevForce Silverlight project, what would be the best way to add the security features (that are part of the new template) to the existing project?  
  • Is there some documentation that would provide some guidance?
  • Or is it better to start a new solution with the new template, and import all of the code from the old project?
Any help/direction would be greatly appreciated.

Thanks,

Mike






Replies:
Posted By: kimj
Date Posted: 03-Dec-2010 at 2:57pm
Good question, and we don't currently have this documented.
 
The Business Application templates include the ASP.NET features, along with navigation and theming.  If you want the navigation and theming too, then the best approach would be to start with a BAT and then include your existing code and/or projects.
 
If you don't want the navigation and theming, then it's probably easiest to create a solution from a BAT and then copy files over to your existing solution.  These files would include:  the web.config portion(s) dealing with ASP.NET; all files in the web project's Services and Models folders; all files/links in the SL project's Models folder; and the AuthenticationManager in the SL project.  If you do want the Login-related views also copy those over, but you'll then need to selectively include some of the code from the Controls and Helpers folders.  You'll also need some of the Resources from both projects too, since they're referenced by other files.
 
Please let us know how it goes or if you run into any issues.



Print Page | Close Window