We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
koa ^2.13.0 koa-passport latest passport-facebook latest
Facebook can't authenticate because callbackURL becomes http://. But my request URL is https://.
Then I providing absolute callbackURL with https:// scheme, it working.
It is due to this check: https://github.com/jaredhanson/passport-oauth2/blob/master/lib/utils.js#L27 req.connection.encrypted is very obsolete and not working, we should use req.secure for both Express and Koa.
req.connection.encrypted
req.secure
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
facing the same issue here, I have to pass a new calculated URL with "https" when running passport.authenticate(..., { callbackURL: 'https://...' })
passport.authenticate(..., { callbackURL: 'https://...' })
No branches or pull requests
koa ^2.13.0
koa-passport latest
passport-facebook latest
Facebook can't authenticate because callbackURL becomes http://. But my request URL is https://.
Then I providing absolute callbackURL with https:// scheme, it working.
It is due to this check:
https://github.com/jaredhanson/passport-oauth2/blob/master/lib/utils.js#L27
req.connection.encrypted
is very obsolete and not working, we should usereq.secure
for both Express and Koa.The text was updated successfully, but these errors were encountered: