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

Fix url check error resulting in 400 when strategy is used in an Express router #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fchu
Copy link

@fchu fchu commented Sep 25, 2017

This happens because the Express router, changes the value of req.url to strip the mount point.
Using req.originalUrl should fix the issue ( Fixes #43 )
(see http://expressjs.com/en/4x/api.html#req.originalUrl for details)

@arihantdaga
Copy link

@jaredhanson i think we should merge this.. its causing error in digest auth and not giving any proper error message, but just bad request, it took me hours before finally digging down the code to later find that, that error was due to this...

@lkaybob
Copy link

lkaybob commented Oct 15, 2018

+1 on this PR. It also took me hours to debug

@beaulac
Copy link

beaulac commented Jan 30, 2020

This is a duplicate of #49 – either solution works, it would be nice to merge one of them though :)

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

Successfully merging this pull request may close these issues.

When express app is mounted at non-root endpoint, passport-http returns 400
4 participants