FW/1 - Framework One - is a lightweight, convention over configuration, MVC application framework for ColdFusion / CFML.This FW/1 directory is a complete web application and expects to live in its own webroot, if you plan to run the applications within it. To use FW/1 in a separate webroot you can either copy the framework
directory to that webroot or add a mapping for /framework
to the framework
folder inside this FW/1 directory. Note that since your Application.cfc
needs to extend framework.one
, you have to add the mapping in your admin - you can't just use a per-application mapping.
- Ref : GitHub
Security is the most common thing for a web application. There might be several ways of doing security checks for web applications. Basic authentication, XSS, CSRF, SQL injection & API authentication are the some security contexts for the modern day web applications. But basic authentication based on the user roles is almost required for most of the applications.
In MitrahSoft, we use FW/1 as default CFML framework for most of our applications. In most cases, we may need to implement the role based security. Here we've created an security module, that does the trick for you in CFML. This sample & security.cfc code is mostly inspired by ColdBox security module. Please feel free to check & let us know your feedback on this.
If you find any issues, please file bug in GitHub. if you want to contribute or enhance this sample application, feel free to fork & sent us back pull request.