fangli / kibana-authentication-proxy

Hosts the latest kibana3 and elasticsearch behind Google OAuth2, Basic Authentication or CAS Authentication
MIT License
223 stars 66 forks source link

setImmediate is not defined #17

Closed hayesm closed 10 years ago

hayesm commented 10 years ago

Hi

I am having the following exception when I connect to the proxy:

Server starting... Info: HTTP Basic Authentication applied Warning: No Google OAuth2 presented Warning: No CAS authentication presented Server listening on 8983

ReferenceError: setImmediate is not defined at MemoryStore.get .../kibana-authentication-proxy-elastic/node_modules/express/node_modules/connect/node_modules/express-session/session/memory.js:41:3) at Object.session as handle at next (.../kibana-authentication-proxy-elastic/node_modules/express/node_modules/connect/lib/proto.js:193:15) at Object.cookieParser as handle at next (.../kibana-authentication-proxy-elastic/node_modules/express/node_modules/connect/lib/proto.js:193:15) at Object.expressInit as handle at next (.../kibana-authentication-proxy-elastic/node_modules/express/node_modules/connect/lib/proto.js:193:15) at Object.query as handle at next (.../kibana-authentication-proxy-elastic/node_modules/express/node_modules/connect/lib/proto.js:193:15) at Function.app.handle (.../kibana-authentication-proxy-elastic/node_modules/express/node_modules/connect/lib/proto.js:201:3)

I am using the default configuration settings for all properties except:

"listen_port": 9300,
"enable_basic_auth": true,
"which_auth_type_for_kibana_index": "basic", // google, cas or basic
"enable_basic_auth": true,

Am I missing a configuration step?

hayesm commented 10 years ago

I am able to get past the exception by manually installing set-immediate using npm then modifying app.js to have: var setImmediate = require('setimmediate');

The machine is running node version 0.10.26.

fangli commented 10 years ago

Hi, I'll check if there are breaking changes in some special nodejs version.

fangli commented 10 years ago

I will not take action until get more relevant feedback from others since you have it resolved already.

hayesm commented 10 years ago

Agreed.

fangli commented 10 years ago

Thanks for your feedback anyway.