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 = []


  •   Dan Vega
  • o.1 is the latest of 1 release(s)
  • Published on Oct 16 2016 11:47 AM
box install Solitary

Add the following to your dependencies or devdependencies objects in your box.json, so CommandBox can track it as a dependency.

"Solitary" : "stable"
4.57 / 7
  • Apr 08 2011 12:13 PM
  • Oct 16 2016 11:47 AM
  • 4192
  • 1239
  • 53