{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/7468","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/7468/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/7468/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/7468/events","html_url":"https://github.com/meteor/meteor/issues/7468","id":167457389,"number":7468,"title":"trivial twitter login ","user":{"login":"interfaith","id":735695,"avatar_url":"https://avatars.githubusercontent.com/u/735695?v=3","gravatar_id":"","url":"https://api.github.com/users/interfaith","html_url":"https://github.com/interfaith","followers_url":"https://api.github.com/users/interfaith/followers","following_url":"https://api.github.com/users/interfaith/following{/other_user}","gists_url":"https://api.github.com/users/interfaith/gists{/gist_id}","starred_url":"https://api.github.com/users/interfaith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interfaith/subscriptions","organizations_url":"https://api.github.com/users/interfaith/orgs","repos_url":"https://api.github.com/users/interfaith/repos","events_url":"https://api.github.com/users/interfaith/events{/privacy}","received_events_url":"https://api.github.com/users/interfaith/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/can't-reproduce","name":"can't-reproduce","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-07-25T20:26:58Z","updated_at":"2016-07-26T13:52:19Z","closed_at":"2016-07-26T12:51:47Z","body":"see https://github.com/interfaith/twittertest\r\n\r\ntwitter will work for localhost development\r\nhowever if a real ip is used, the callback keeps going to localhost\r\n\r\n! no code is  needed \r\n! no configuration is needed\r\nmeteor create twittertest\r\nmeteor add accounts-ui, accounts-twittter (service config is auto added)\r\n\r\nadd 'loginButtons' to main.html\r\nthen run  meteor\r\nsee the twitter configuration \r\na. add real ip not 127.0.0.1\r\nb. add key/secret from twitter.com\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/235273840","html_url":"https://github.com/meteor/meteor/issues/7468#issuecomment-235273840","issue_url":"https://api.github.com/repos/meteor/meteor/issues/7468","id":235273840,"user":{"login":"interfaith","id":735695,"avatar_url":"https://avatars.githubusercontent.com/u/735695?v=3","gravatar_id":"","url":"https://api.github.com/users/interfaith","html_url":"https://github.com/interfaith","followers_url":"https://api.github.com/users/interfaith/followers","following_url":"https://api.github.com/users/interfaith/following{/other_user}","gists_url":"https://api.github.com/users/interfaith/gists{/gist_id}","starred_url":"https://api.github.com/users/interfaith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interfaith/subscriptions","organizations_url":"https://api.github.com/users/interfaith/orgs","repos_url":"https://api.github.com/users/interfaith/repos","events_url":"https://api.github.com/users/interfaith/events{/privacy}","received_events_url":"https://api.github.com/users/interfaith/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T13:52:19Z","updated_at":"2016-07-26T13:52:19Z","body":"meteor 1.4 has trouble\n\nspowage@ubuntu:~/tweetout/bundle$ node main.js\n\nassert.js:92\n  throw new assert.AssertionError({\n        ^\nAssertionError: \"undefined\" === \"function\"\n    at wrapPathFunction\n(/home/spowage/tweetout/bundle/programs/server/mini-files.js:77:10)\n    at Object.<anonymous>\n(/home/spowage/tweetout/bundle/programs/server/mini-files.js:108:24)\n    at Module._compile (module.js:456:26)\n    at Object.Module._extensions..js (module.js:474:10)\n    at Module.load (module.js:356:32)\n    at Function.Module._load (module.js:312:12)\n    at Module.require (module.js:364:17)\n\n\nOn Tue, Jul 26, 2016 at 6:45 AM, Mark Spowage <spowage@gmail.com> wrote:\n\n> yeah it worked !!\n> ROOT_URL=http://host.com:3000 meteor\n>\n> now to get it towork in the production environment\n> here goes\n>\n>\n>\n>\n> On Tue, Jul 26, 2016 at 5:58 AM, Mark Spowage <spowage@gmail.com> wrote:\n>\n>> It's undocumented, but you can bind to a specific IP address with the\n>> BIND_IP environment variable[1]\n>> <http://www.meteorpedia.com/read/Bind_to_specific_IP_Address#cite_note-1>\n>> .\n>>\n>> e.g.\n>>\n>> 1\n>> BIND_IP=127.0.0.1 meteor run\n>>\n>>\n>> On Tue, Jul 26, 2016 at 5:44 AM, Mark Spowage <spowage@gmail.com> wrote:\n>>\n>>> meteor run --production helps\n>>> i will try node index.js again\n>>>\n>>> On Tue, Jul 26, 2016 at 5:39 AM, Mark Spowage <spowage@gmail.com> wrote:\n>>>\n>>>> Forget development if it works in production.\n>>>>\n>>>>\n>>>>\n>>>> On Tue, Jul 26, 2016 at 12:11 AM, Jesse Rosenberger <\n>>>> notifications@github.com> wrote:\n>>>>\n>>>>> @interfaith <https://github.com/interfaith> Please do not open new\n>>>>> issues for the same problem. This new issue has almost no context without\n>>>>> #7464 <https://github.com/meteor/meteor/issues/7464>.\n>>>>>\n>>>>> I think the problem here lies with how Meteor knows who \"it\" is (or\n>>>>> how you think Meteor knows to use anything besides localhost?).\n>>>>>\n>>>>> By default, Meteor will use http://localhost:3000/ *everywhere* an\n>>>>> external URL is required. This is for the development experience as it is\n>>>>> not expected that you will be running your Meteor development tool (\n>>>>> meteor) on a public IP address or domain.\n>>>>>\n>>>>> The accounts-* packages therefore also use the default URL (\n>>>>> http://localhost:3000) to facilitate an easy development process.\n>>>>> Using your reproduction steps above:\n>>>>>\n>>>>> meteor create twittertest\n>>>>> meteor add accounts-ui, accounts-twittter (service config is auto\n>>>>> added)\n>>>>>\n>>>>> add 'loginButtons' to main.html\n>>>>> then run meteor\n>>>>> see the twitter configuration\n>>>>>\n>>>>> I immediately get a functioning Twitter login.\n>>>>>\n>>>>> When doing oAuth authentication, the requesting application (Meteor)\n>>>>> tells the oAuth provider (Twitter) what callback it should send the URL to.\n>>>>> The address you're entering in Twitter is simply a default (and with some\n>>>>> providers you can specify that *only* specific callback URLs can be\n>>>>> used). So Meteor, once again, consults it's default URL for development:\n>>>>> http://localhost:3000.\n>>>>>\n>>>>> Now, in a live environment or with a publicly routable host, you need\n>>>>> to tell Meteor *what* your URL is by using ROOT_URL otherwise none of\n>>>>> this will work. How else is it supposed to accurately guess what you want\n>>>>> to use besides localhost?\n>>>>>\n>>>>> Essentially, I can change my example to work on a public host (or IP)\n>>>>> by:\n>>>>>\n>>>>>    1. Changing my Twitter *Website* to http://myhostaddress.com/\n>>>>>    2. Changing my Twitter *Callback URL* to\n>>>>>    http://myhostaddress.com/_oauth/twitter\n>>>>>    3. Starting my Meteor tool with ROOT_URL=http://myhostaddress.com/\n>>>>>    meteor\n>>>>>\n>>>>> —\n>>>>> You are receiving this because you were mentioned.\n>>>>> Reply to this email directly, view it on GitHub\n>>>>> <https://github.com/meteor/meteor/issues/7468#issuecomment-235181233>,\n>>>>> or mute the thread\n>>>>> <https://github.com/notifications/unsubscribe-auth/AAs5z7a_DOBuVkUZbyJ4WHoerLKk0LzHks5qZbMPgaJpZM4JUgwb>\n>>>>> .\n>>>>>\n>>>>\n>>>>\n>>>>\n>>>> --\n>>>> -----\n>>>> Fight back spam! Download the Blue Frog.\n>>>> http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D\n>>>>\n>>>\n>>>\n>>>\n>>> --\n>>> -----\n>>> Fight back spam! Download the Blue Frog.\n>>> http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D\n>>>\n>>\n>>\n>>\n>> --\n>> -----\n>> Fight back spam! Download the Blue Frog.\n>> http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D\n>>\n>\n>\n>\n> --\n> -----\n> Fight back spam! Download the Blue Frog.\n> http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D\n>\n\n\n\n-- \n-----\nFight back spam! Download the Blue Frog.\nhttp://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D\n"}}
{"actor":{"display_login":"interfaith"}}