jaredhanson / passport-http

HTTP Basic and Digest authentication strategies for Passport and Node.js.
https://www.passportjs.org/packages/passport-http/?utm_source=github&utm_medium=referral&utm_campaign=passport-http&utm_content=about
MIT License
268 stars 110 forks source link

Session not saved after login using passport-http #68

Closed fouadsemaan closed 7 years ago

fouadsemaan commented 7 years ago

Once I am logged in, the req.user is no longer included in any following requests. I using the express-session and the passport session in that order. All I see in the cookie is the connect-sid. I am using the default Memory Store using passport-http. I see that it tries to store the user object session which disappears in any requests following the login.

I am using express 4.X.

"body-parser": "^1.15.1", "connect-redis": "3.0.2", "cookie-parser": "^1.4.3", "express": "4.13.4", "express-handlebars": "3.0.0", "express-logger": "0.0.3", "express-session": "^1.13.0", "express-static": "^1.1.0", "fs": "0.0.1-security", "https": "^1.0.0", "passport": "0.3.2", "passport-http": "0.3.0"