In order to register your own custom security validator just open the config/Coldbox.cfc
and add the validator
key with the value being a WireBox ID that points to your object that will provide the validation.
A security validator object is a simple CFC that implements the following functions
Each validator must return a struct with the following keys:
allow:boolean
A Boolean indicator if authentication or authorization was violated
type:stringOf(authentication|authorization)
A string that indicates the type of violation: authentication or authorization.
Here is a sample validator using permission based security in both rules and annotation context
That's it! Go validate!