BoxLang 🚀 A New JVM Dynamic Language Learn More...

Solitary

vo.1 Modules

Building a new application that requires a security in framework can be a very tedious task. A security framework usually starts off as a simple requirement and ends up growing into a project all on its own. You first decide to either copy some code from a previous project or start from scratch. What if there was a way to drop a folder into your project and have a security framework in place instantly? Well now there is!

When modules came out for ColdBox I thought this would be a great first project to work. Solitary is a ColdBox module that handles roles based security for your application. When you drop the module into your project it will instantly lock down your entire application and create the necessary tables in your database. Under the hood it uses the ColdBox interceptor so its fully customizable.

  1. Drop the solitary folder into your modules folder {project_root}/modules/
  2. Add a mapping to {project_root}/Application.cfc
    this.mappings['/solitary'] = COLDBOX_APP_ROOT_PATH & "/modules/solitary";
  3. Update {project_root}/Application.cfc to enable ORM

    this.ormEnabled = true;
    this.datasource = "YOUR_DATASOURCE_HERE";
    this.ormSettings = {
    dbcreate = "update",
    eventhandling = true,
    flushAtRequestEnd = false,
    cfclocation = []
    };

$ box install Solitary

No collaborators yet.
 
4.57 / 7
  • {{ getFullDate("2011-04-08T12:13:58Z") }}
  • {{ getFullDate("2016-06-09T08:52:51Z") }}
  • 6,955
  • 3,972