-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathModuleConfig.cfc
41 lines (35 loc) · 1.15 KB
/
ModuleConfig.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
component {
this.title = "cbauth";
// Don't map models, we will do it manually
this.autoMapModels = false;
// Module Dependencies
this.dependencies = [ "cbstorages" ];
// Helpers automatically loaded
this.applicationHelper = [ "helpers/Mixins.cfm" ];
function configure() {
settings = {
userServiceClass = "",
sessionStorage = "SessionStorage@cbstorages",
requestStorage = "RequestStorage@cbstorages"
};
// Custom Events
interceptorSettings = {
customInterceptionPoints = [
"preAuthentication",
"onInvalidCredentials",
"postAuthentication",
"preLogout",
"postLogout",
"preLogin",
"postLogin"
]
};
}
function onLoad() {
binder.map( "SessionStorage@cbauth" ).toDSL( settings.sessionStorage );
binder.map( "RequestStorage@cbauth" ).toDSL( settings.requestStorage );
binder.map( "AuthenticationService@cbauth" ).to( "#moduleMapping#.models.AuthenticationService" );
}
function onUnload() {
}
}