流星0.6.6.1 - 身份验证回调的问题 - 与Twitter登录 [英] Meteor 0.6.6.1 - Login with Twitter - auth callback issue

查看:103
本文介绍了流星0.6.6.1 - 身份验证回调的问题 - 与Twitter登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设立与Twitter登录流星应用程序,并遇到了以下问题:我想做出我的同事访问的应用程序(我的地方发展在版本的 http://server.mydomain.com:3000 ),但Twitter的登录回调总是重定向到本地主机:3000。我完全能够登录,但我的同事都没有。

I am setting up a Meteor app with Twitter login and ran into following problem: I would like to make my local development version of the app accessible for my colleagues (at http://server.mydomain.com:3000), but the Twitter login callback always redirects to localhost:3000. I am perfectly able to log in, but my colleagues aren't.

不幸的是我没有找到如何流星的登录服务配置中定义的回调URL的任何引用:

Unfortunately I didn't find any reference on how to define the callback url within Meteor's login service configuration:

Accounts.loginServiceConfiguration.insert({
  service: "twitter",
  consumerKey: "***",
  secret: "***"
});

任何帮助将大大AP preciated。谢谢你。

Any help would be greatly appreciated. Thank you.

推荐答案

您需要确保您Twitter的回调URL设置为 server.mydomain.com:3000/_oauth/twitter?close 。该设置将是Twitter上的 https://dev.twitter.com/apps/

You need to make sure you set twitter's callback url to server.mydomain.com:3000/_oauth/twitter?close. The setting would be in twitter at https://dev.twitter.com/apps/

第二件事是要确保你正在运行的部署模式您的应用程序,而不是开发模式,你也有你的 ROOT_URL 环境变量设置为 http://server.mydomain.com:3000

The second thing is to make sure you're running your app in deploy mode as opposed to development mode where you also have to set your ROOT_URL environmental variable to http://server.mydomain.com:3000.

这篇关于流星0.6.6.1 - 身份验证回调的问题 - 与Twitter登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆