When express app is mounted at non-root endpoint, passport-http returns 400
adborden opened this issue · 4 comments
adborden commented
Mounting an app at a non-root endpoint fails on the uri check because passport-http is only checking the relative uri as seen by the express app, not by the uri as seen by the client.
e.g.
authApp = require('../modules/auth');
app.use('/auth', authApp);
// ../module/auth.js
app.get('/digest', passport.authenticate 'digest');
Seems to always yield 400.
mauron85 commented
+1
fchu commented
+1
fchu commented
Uh sorry just saw there was already a pull request!
@jaredhanson please accept either fix :)
libinvarghese commented
@jaredhanson Any update on merge? #44 works for me.