Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring derby-auth 0.5 #43

Closed
ofridaganSamanage opened this issue Jun 22, 2013 · 3 comments
Closed

Configuring derby-auth 0.5 #43

ofridaganSamanage opened this issue Jun 22, 2013 · 3 comments

Comments

@ofridaganSamanage
Copy link

In the README file it says:
Make sure your express app is using sessions:
.use(store.sessionMiddleware ...

I think this doesn't work anymore in derby0.5, and instead we have:
.use(express.session ...

I did everything in the README file (I think...) but I get an error trying to use derby-auth:
Error: req.flash() requires sessions
at Error (:null:null)
at IncomingMessage._flash as flash
at Object.handle (node_modules/derby-auth/middleware.coffee:52:5, :54:39)
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.handle (node_modules/derby-auth/node_modules/connect-flash/lib/flash.js:21:5)
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.expressInit as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.query as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Function.app.handle (node_modules/express/node_modules/connect/lib/proto.js:198:3)
at Object.fn as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.modelMiddleware as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.middleware as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.scriptsMiddleware as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.compress as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.favicon as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.expressInit as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.query as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Function.app.handle (node_modules/express/node_modules/connect/lib/proto.js:198:3)
at Server.app (node_modules/express/node_modules/connect/lib/connect.js:65:37)
at Server.EventEmitter.emit (events.js:98:17)
at HTTPParser.parser.onIncoming (http.js:2045:12)
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.socket.ondata (http.js:1935:22)
at TCP.onread (net.js:524:27)

lefnire added a commit that referenced this issue Jun 22, 2013
@lefnire
Copy link
Owner

lefnire commented Jun 22, 2013

Just updated the README. For now, use the example folder (eg, src/server/index.coffee) as the canonical source until I get this fully upgraded

@lefnire lefnire closed this as completed Jun 22, 2013
@lefnire
Copy link
Owner

lefnire commented Jun 22, 2013

Also, take caution with this branch - it's gonna be changing a lot soon, might be migrating users.auth to auth top-level collection due to this and this

@ofridaganSamanage
Copy link
Author

Thanks Tyler!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants