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

utils.originalURL method fixed to support express routers #11

Closed
wants to merge 1 commit into from
Closed

utils.originalURL method fixed to support express routers #11

wants to merge 1 commit into from

Conversation

denisjarus
Copy link

invalid_signature error is thrown when using strategies with express router because of req.url being changed by express and an incorrect signature generated as a result. This one is a more correct solution than in another pull request fixing the same issue (#10) as req.originalUrl used by @tinnou also has all the query string parameters in it, while req.baseUrl + req.url is a correct full path for express requests going through a router.

@denisjarus denisjarus closed this May 15, 2015
@denisjarus denisjarus reopened this May 15, 2015
@denisjarus denisjarus closed this May 15, 2015
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.

1 participant