Presentation Summary and Files: Mach-II User Authentication and More
ColdFusionLast night I gave a presentation to the DFW CFUG on Mach-II. I spent the first part of the presentation talking about all the new features that have been added in both versions 1.5 and 1.6.
The features we covered were:
- Mach-II 1.5
- XML Includes and Modules
- Subroutines
- <redirect /> enhancements
- Complex properties defined in config XML
- URL Management Features (SES support) -buildUrl() & buildUrlToModule()
- Bindable property placeholders for params
- Mach-II 1.6
- Broadcast style listeners – putting the II in Mach-II
- Application.cfc enhancements - much simpler and new plugin points for onSessionStart/End
- handleException() plugin point enhancements
- Enhancements to tracing/debugging
- New cache manager (granular)
- Lot's of goodies slated for 2.0. Anyone interested in a dashboard module? This will allow for programmatic reloading of the entire application, modules, managing the caching engine in addition to future enhancements to the framework.
Next we went into code examples where I had three stages of a sample application. The first had two public events, one of which we would secure with user authentication in the next step.
In the second phase, we added in necessary CFCs to support our User - User.cfc, UserDAO/Gateway/Service/Facade, and tied them together using the newly available ColdSpring property. We then secured one of our events by using a CheckIsLoggedIn filter
In our third and final phase, we took a very simple approach to introducing roles based security by securing a new event limiting access to only users who had a role of type "Site Admin". As mentioned in the presentation, there are certainly more robust ways to implement roles based security, but hopefully the example will help kick start ideas.
You will find the following in the zip file below:
- Presentation in both ODT and PPT
- Three sample applications representing all stages covered
- Sample http-vhosts.conf showing how I had the apps set up in Apache.
- MySQL backup file of the database used. You will need to add a ColdFusion DSN named "machii_auth"
Thanks to all that attended!





Loading....