This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
cache: { | |
adapter: 'sails-redis', | |
url: 'redis://localhost:6379', | |
}, | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var util = require('util'); | |
module.exports = { | |
friendlyName: 'Cache write', | |
description: 'used to save data into cache using a key and a TTL in seconds until the cache expires the data.', | |
inputs: { | |
key: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var util = require('util'); | |
module.exports = { | |
friendlyName: 'Cache read', | |
description: 'used to retrieve data from cache via a key, undefined if data doesnt exist or expired.', | |
inputs: { | |
key: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.http = { | |
middleware: { | |
passportInit: require('passport').initialize(), | |
passportSession: require('passport').session(), | |
order: [ | |
'cookieParser', | |
'session', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var passport = require('passport'), | |
FacebookStrategy = require('passport-facebook').Strategy, | |
request = require('request'); | |
var verifyHandler = function(req, token, tokenSecret, profile, done) { | |
process.nextTick(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* PassportController | |
* | |
* @description :: Server-side actions for handling incoming requests. | |
* @help :: See https://sailsjs.com/docs/concepts/actions | |
*/ | |
var passport = require('passport'); | |
module.exports = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var passport = require('passport'), | |
FacebookStrategy = require('passport-facebook').Strategy, | |
request = require('request'); | |
var verifyHandler = function(req, token, tokenSecret, profile, done) { | |
process.nextTick(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.http = { | |
middleware: { | |
passportInit: require('passport').initialize(), | |
passportSession: require('passport').session(), | |
order: [ | |
'cookieParser', | |
'session', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var passport = require('passport'), | |
GoogleStrategy = require('passport-google-oauth20').Strategy; | |
//var verifyHandler = function(req, token, tokenSecret, profile, done) { | |
var verifyHandler = function (accessToken, refreshToken, profile, cb, done) { | |
var data = { | |
id: cb.id, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* PassportController | |
* | |
* @description :: Server-side actions for handling incoming requests. | |
* @help :: See https://sailsjs.com/docs/concepts/actions | |
*/ | |
var passport = require('passport'); | |
module.exports = { |
OlderNewer