Skip to content

Instantly share code, notes, and snippets.

@ajohnstone
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajohnstone/3829cb02e983d6102c3e to your computer and use it in GitHub Desktop.
Save ajohnstone/3829cb02e983d6102c3e to your computer and use it in GitHub Desktop.
--- app.js 2015-04-12 16:31:48.433430728 +0100
+++ app.js 2015-04-12 16:31:48.433430728 +0100
@@ -19,6 +19,12 @@
app.set('view engine', 'jade');
app.set('x-powered-by', false);
+var sessions = require("client-sessions")
+var c_auth = require('./lib/google-oauth')
+var config_security = require('./config/security')
+app.use(sessions({ cookieName: 'session', secret: config_security.cookie_secret }))
+c_auth.setupOAuth(express, app, config_security)
+
app.use(requestLogger());
app.use(auth());
app.use(appHeaders());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment