Last active
August 29, 2015 14:19
-
-
Save ajohnstone/3829cb02e983d6102c3e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--- 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