UNPKG

mcms-node-framework

Version:

the mcms-node framwork

54 lines 1.61 kB
{ "default" : "local", "sessionSecret" : "mySecretKey", "sessionStore" : "redis", "rememberMeTTL" : "1Y", "options" : { "saveUninitialized" : true, "resave" : false }, "credentials" : { "usernameField" : "email", "passwordField" : "password", "activeField" : "active", "rememberMeField" : "remember" }, "user" : { "model" : "App/Model/mcms-user", "table" : "users" }, "stateless" : true, "consumers" : { "local" : { "strategy" : "local", "loginUrl" : "/login", "adminLoginUrl" : "/admin/login", "adminFailUrl" : "/admin/login", "adminSuccessRedirect" : "/admin", "successRedirect" : "/userCP", "failureRedirect" : "/login", "store" : "cookie" }, "facebook" : { "strategy" : "facebook", "clientID" : "id", "clientSecret" : "Secret", "callbackURL" : "http://your-url/auth/facebook/callback", "scope" : ["email"], "successRedirect" : "/userCP", "failureRedirect" : "/login", "profileFields" : ["id", "email", "gender", "link", "locale", "name", "timezone", "updated_time", "verified"], "store" : "cookie" }, "google" : { "strategy" : "google", "clientID" : "clientid", "clientSecret" : "secret", "callbackURL" : "/auth/google/callback", "successRedirect" : "/user", "failureRedirect" : "/login", "scope" : ["https://www.googleapis.com/auth/userinfo.profile","https://www.googleapis.com/auth/userinfo.email"], "store" : "cookie" } } }