New Posts New Posts RSS Feed: Adding security features to an existing project
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Adding security features to an existing project

 Post Reply Post Reply
Author
CodeNameTech View Drop Down
Newbie
Newbie


Joined: 03-Dec-2010
Posts: 10
Post Options Post Options   Quote CodeNameTech Quote  Post ReplyReply Direct Link To This Post Topic: Adding security features to an existing project
    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



Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1278
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down