In Express, I\'m led to believe that global app settings can be created by doing something similar to the following in my main app.js file:
app.js
var
At the end of your app.js file:
module.exports = app;
And then in routes/login.js:
routes/login.js
var app = require('../app');
Now you have access to the actual app object and won't get a ReferenceError.
app
ReferenceError
Use req.app.get('ssoHostname')
req.app.get('ssoHostname')