[英]Passport Facebook authentication on cloud 9
I am trying to use Passport Facebook authentication on cloude 9. The call back is always failing giving an error 我正在尝试在cloude 9上使用Passport Facebook身份验证。回叫总是失败,并给出错误消息
This site can't provide a secure connection webdevdk-******.c9users.io sent an invalid response.
The call back module is 回调模块是
module.exports = {
'facebookAuth' : {
'clientID': '***********',
'clientSecret': '*******************',
'callbackURL': 'https://webdevdk-******.c9users.io:80/auth/facebook/callback'
}};
My routes are 我的路线是
app.get('/auth/facebook',
passport.authenticate('facebook', { scope: ['email'] })
);
app.get('/auth/facebook/callback',
passport.authenticate('facebook', { successRedirect: '/',
failureRedirect: '/' }));
My facebook app setting are 我的Facebook应用程序设置为
app domain : webdevdk-*******.c9users.io
site URL : webdevdk-*******.c9users.io:80/
Valid OAuth redirect URIs : webdevdk******.c9users.io:80/auth/facebook/callback
Am I missing somthing ? 我在想什么吗?
Are you trying to do this through a preview tab in the IDE itself, or are you opening the preview in a separate tab/window in your browser? 您是要通过IDE本身的预览选项卡来执行此操作,还是要在浏览器的单独选项卡/窗口中打开预览? Testing AJAX calls to https endpoints in the IDE do not work due to SSL issues (since the preview tab is an iframe).
由于SSL问题(由于“预览”标签为iframe),因此无法在IDE中测试对https端点的AJAX调用。 If you're currently attempting to test your application through the IDE, try testing in a separate tab instead.
如果当前正在尝试通过IDE测试应用程序,请尝试在单独的选项卡中进行测试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.