Andrew and Sean,
Here is the syntax for the Config.cfc to register the security interceptor. See if this helps. It works fine for me. I use it in quite a few applications.
//Register interceptors as an array, we need order
interceptors = [
//Security
{class="core.interceptors.security",
properties={
rulesSource="xml",
rulesFile="config/securityrules.xml.cfm",
debug="true",
validatorModel="user.securityManager"
}
}
];
Also, I use the built in Security Interceptor in my "securityManage" by injecting it. Here is my init() method. I inject it using the interceptor Service since it will init it with all its dependencies. See if that helps
<cffunction name="init" access="public" returnType="securityManager" output="false" hint="Returns an instance of the CFC">
<cfargument name="UserService" type="any" required="false" inject="model:User.UserService" />
<cfargument name="interceptorService" type="any" required="false" inject="coldbox:interceptorService" />
<cfargument name="controller" type="any" required="false" inject="coldbox" />
<cfargument name="messagebox" type="any" required="false" inject="coldbox:plugin:messagebox" />
<cfset variables.UserService = arguments.UserService />
<cfset variables.controller = arguments.controller />
<cfset variables.messagebox = arguments.messagebox />
<cfset variables.SecurityInterceptor = arguments.interceptorService.getInterceptor("security")>
?
<cfreturn this>
</cffunction>
Thanks,
Curt Gratz
Computer Know How