I was wondering if any of you has used Socialite module from ForgeBox.
In my handler:
property name=“socialite” inject=“Socialite@Socialite”;
ModuleConfig.cfc
component {
// Module Properties
this.title = “Socialite”;
this.author = “”;
this.webURL = “”;
this.description = “”;
this.version = “1.0.0”;
// If true, looks for views in the parent first, if not found, then in the module. Else vice-versa
this.viewParentLookup = false;
// If true, looks for layouts in the parent first, if not found, then in module. Else vice-versa
this.layoutParentLookup = true;
// Module Entry Point
this.entryPoint = “socialauth”;
// Model Namespace
this.modelNamespace = “Socialite”;
// CF Mapping
this.cfmapping = “Socialite”;
// Module Dependencies
this.dependencies = [];
function configure(){
// module settings - stored in modules.name.settings
settings = {
oauth = {
facebook = {
client_id = “159181544107035”,
client_secret = “13d20a30524e4aebcbb4a9e7b95f07fe”,
redirect_url = “http://dev.dates.com/socialauth/provider/response/facebook”
}
}
};
// SES Routes
routes = [
// Module Entry Point
{pattern="/provider/response/:provider", handler=“home”,action=“response”},
{pattern="/provider/:provider", handler=“home”,action=“auth”},
{pattern="/", handler=“home”,action=“index”},
// Convention Route
{pattern="/:handler/:action?"}
];
// Binder Mappings
// binder.map(“Alias”).to("#moduleMapping#.model.MyService");
// Look for module setting overrides in parent app and override them.
var coldBoxSettings = controller.getSettingStructure();
if( structKeyExists( coldBoxSettings, ‘oauth’ ) ) {
structAppend( settings.oauth, coldBoxSettings[ ‘oauth’ ], true );
}
}
}
When I called my handler, I got:
Type: Builder.DSLDependencyNotFoundException
Messages: The DSL Definition {REF={null}, REQUIRED={true}, ARGNAME={}, DSL={id:Socialite@Socialite}, JAVACAST={null}, NAME={socialite}, TYPE={any}, VALUE={null}, SCOPE={variables}} did not produce any resulting dependency The target requesting the dependency is: ‘handlers.Account’
Any idea?
Thank you.