{"action":"created","comment":{"url":"https://api.github.com/repos/inrhythm/vivace/pulls/comments/48382392","id":48382392,"diff_hunk":"@@ -0,0 +1,8 @@\n+var domain_name = process.env.DOMAIN_NAME || \"http://localhost:8001\"\n+module.exports = {\n+  redis_port : process.env.REDIS_PORT,\n+  redis_host : process.env.REDIS_HOST,\n+  oauth2_client_id : process.env.OAUTH2_CLIENT_ID,\n+  oauth2_client_secret : process.env.OAUTH2_CLIENT_SECRET,\n+  oauth2_callback_url : domain_name + \"/auth/google/callback\"","path":"server/config.js","position":7,"original_position":7,"commit_id":"6631c76a1a02bfbe78d6fd55c0aacde328b3b43e","original_commit_id":"6631c76a1a02bfbe78d6fd55c0aacde328b3b43e","user":{"login":"jackofseattle","id":1535387,"avatar_url":"https://avatars.githubusercontent.com/u/1535387?v=3","gravatar_id":"","url":"https://api.github.com/users/jackofseattle","html_url":"https://github.com/jackofseattle","followers_url":"https://api.github.com/users/jackofseattle/followers","following_url":"https://api.github.com/users/jackofseattle/following{/other_user}","gists_url":"https://api.github.com/users/jackofseattle/gists{/gist_id}","starred_url":"https://api.github.com/users/jackofseattle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackofseattle/subscriptions","organizations_url":"https://api.github.com/users/jackofseattle/orgs","repos_url":"https://api.github.com/users/jackofseattle/repos","events_url":"https://api.github.com/users/jackofseattle/events{/privacy}","received_events_url":"https://api.github.com/users/jackofseattle/received_events","type":"User","site_admin":false},"body":"You do this here and then you also construct the callback url in your ensureAuthenticated middleware.  Which one is the one that's supposed to win?","created_at":"2015-12-23T21:56:03Z","updated_at":"2015-12-23T21:56:03Z","html_url":"https://github.com/inrhythm/vivace/pull/53#discussion_r48382392","pull_request_url":"https://api.github.com/repos/inrhythm/vivace/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/inrhythm/vivace/pulls/comments/48382392"},"html":{"href":"https://github.com/inrhythm/vivace/pull/53#discussion_r48382392"},"pull_request":{"href":"https://api.github.com/repos/inrhythm/vivace/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/inrhythm/vivace/pulls/53","id":54509220,"html_url":"https://github.com/inrhythm/vivace/pull/53","diff_url":"https://github.com/inrhythm/vivace/pull/53.diff","patch_url":"https://github.com/inrhythm/vivace/pull/53.patch","issue_url":"https://api.github.com/repos/inrhythm/vivace/issues/53","number":53,"state":"open","locked":false,"title":"Feature/34 integrate passportjs","user":{"login":"prashantpawar","id":101647,"avatar_url":"https://avatars.githubusercontent.com/u/101647?v=3","gravatar_id":"","url":"https://api.github.com/users/prashantpawar","html_url":"https://github.com/prashantpawar","followers_url":"https://api.github.com/users/prashantpawar/followers","following_url":"https://api.github.com/users/prashantpawar/following{/other_user}","gists_url":"https://api.github.com/users/prashantpawar/gists{/gist_id}","starred_url":"https://api.github.com/users/prashantpawar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashantpawar/subscriptions","organizations_url":"https://api.github.com/users/prashantpawar/orgs","repos_url":"https://api.github.com/users/prashantpawar/repos","events_url":"https://api.github.com/users/prashantpawar/events{/privacy}","received_events_url":"https://api.github.com/users/prashantpawar/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-23T21:42:19Z","updated_at":"2015-12-23T21:56:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fceb5337fb78a53d70271e50173816d0a02301c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inrhythm/vivace/pulls/53/commits","review_comments_url":"https://api.github.com/repos/inrhythm/vivace/pulls/53/comments","review_comment_url":"https://api.github.com/repos/inrhythm/vivace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inrhythm/vivace/issues/53/comments","statuses_url":"https://api.github.com/repos/inrhythm/vivace/statuses/6631c76a1a02bfbe78d6fd55c0aacde328b3b43e","head":{"label":"inrhythm:feature/34_integrate_passportjs","ref":"feature/34_integrate_passportjs","sha":"6631c76a1a02bfbe78d6fd55c0aacde328b3b43e","user":{"login":"inrhythm","id":3452711,"avatar_url":"https://avatars.githubusercontent.com/u/3452711?v=3","gravatar_id":"","url":"https://api.github.com/users/inrhythm","html_url":"https://github.com/inrhythm","followers_url":"https://api.github.com/users/inrhythm/followers","following_url":"https://api.github.com/users/inrhythm/following{/other_user}","gists_url":"https://api.github.com/users/inrhythm/gists{/gist_id}","starred_url":"https://api.github.com/users/inrhythm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inrhythm/subscriptions","organizations_url":"https://api.github.com/users/inrhythm/orgs","repos_url":"https://api.github.com/users/inrhythm/repos","events_url":"https://api.github.com/users/inrhythm/events{/privacy}","received_events_url":"https://api.github.com/users/inrhythm/received_events","type":"Organization","site_admin":false},"repo":{"id":47984931,"name":"vivace","full_name":"inrhythm/vivace","owner":{"login":"inrhythm","id":3452711,"avatar_url":"https://avatars.githubusercontent.com/u/3452711?v=3","gravatar_id":"","url":"https://api.github.com/users/inrhythm","html_url":"https://github.com/inrhythm","followers_url":"https://api.github.com/users/inrhythm/followers","following_url":"https://api.github.com/users/inrhythm/following{/other_user}","gists_url":"https://api.github.com/users/inrhythm/gists{/gist_id}","starred_url":"https://api.github.com/users/inrhythm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inrhythm/subscriptions","organizations_url":"https://api.github.com/users/inrhythm/orgs","repos_url":"https://api.github.com/users/inrhythm/repos","events_url":"https://api.github.com/users/inrhythm/events{/privacy}","received_events_url":"https://api.github.com/users/inrhythm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inrhythm/vivace","description":"","fork":false,"url":"https://api.github.com/repos/inrhythm/vivace","forks_url":"https://api.github.com/repos/inrhythm/vivace/forks","keys_url":"https://api.github.com/repos/inrhythm/vivace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inrhythm/vivace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inrhythm/vivace/teams","hooks_url":"https://api.github.com/repos/inrhythm/vivace/hooks","issue_events_url":"https://api.github.com/repos/inrhythm/vivace/issues/events{/number}","events_url":"https://api.github.com/repos/inrhythm/vivace/events","assignees_url":"https://api.github.com/repos/inrhythm/vivace/assignees{/user}","branches_url":"https://api.github.com/repos/inrhythm/vivace/branches{/branch}","tags_url":"https://api.github.com/repos/inrhythm/vivace/tags","blobs_url":"https://api.github.com/repos/inrhythm/vivace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inrhythm/vivace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inrhythm/vivace/git/refs{/sha}","trees_url":"https://api.github.com/repos/inrhythm/vivace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inrhythm/vivace/statuses/{sha}","languages_url":"https://api.github.com/repos/inrhythm/vivace/languages","stargazers_url":"https://api.github.com/repos/inrhythm/vivace/stargazers","contributors_url":"https://api.github.com/repos/inrhythm/vivace/contributors","subscribers_url":"https://api.github.com/repos/inrhythm/vivace/subscribers","subscription_url":"https://api.github.com/repos/inrhythm/vivace/subscription","commits_url":"https://api.github.com/repos/inrhythm/vivace/commits{/sha}","git_commits_url":"https://api.github.com/repos/inrhythm/vivace/git/commits{/sha}","comments_url":"https://api.github.com/repos/inrhythm/vivace/comments{/number}","issue_comment_url":"https://api.github.com/repos/inrhythm/vivace/issues/comments{/number}","contents_url":"https://api.github.com/repos/inrhythm/vivace/contents/{+path}","compare_url":"https://api.github.com/repos/inrhythm/vivace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inrhythm/vivace/merges","archive_url":"https://api.github.com/repos/inrhythm/vivace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inrhythm/vivace/downloads","issues_url":"https://api.github.com/repos/inrhythm/vivace/issues{/number}","pulls_url":"https://api.github.com/repos/inrhythm/vivace/pulls{/number}","milestones_url":"https://api.github.com/repos/inrhythm/vivace/milestones{/number}","notifications_url":"https://api.github.com/repos/inrhythm/vivace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inrhythm/vivace/labels{/name}","releases_url":"https://api.github.com/repos/inrhythm/vivace/releases{/id}","created_at":"2015-12-14T15:51:34Z","updated_at":"2015-12-17T21:57:19Z","pushed_at":"2015-12-23T21:50:36Z","git_url":"git://github.com/inrhythm/vivace.git","ssh_url":"git@github.com:inrhythm/vivace.git","clone_url":"https://github.com/inrhythm/vivace.git","svn_url":"https://github.com/inrhythm/vivace","homepage":null,"size":680,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":1,"default_branch":"develop"}},"base":{"label":"inrhythm:develop","ref":"develop","sha":"7234c73cec92ea6ce23e182b42e624cb26b9b9f6","user":{"login":"inrhythm","id":3452711,"avatar_url":"https://avatars.githubusercontent.com/u/3452711?v=3","gravatar_id":"","url":"https://api.github.com/users/inrhythm","html_url":"https://github.com/inrhythm","followers_url":"https://api.github.com/users/inrhythm/followers","following_url":"https://api.github.com/users/inrhythm/following{/other_user}","gists_url":"https://api.github.com/users/inrhythm/gists{/gist_id}","starred_url":"https://api.github.com/users/inrhythm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inrhythm/subscriptions","organizations_url":"https://api.github.com/users/inrhythm/orgs","repos_url":"https://api.github.com/users/inrhythm/repos","events_url":"https://api.github.com/users/inrhythm/events{/privacy}","received_events_url":"https://api.github.com/users/inrhythm/received_events","type":"Organization","site_admin":false},"repo":{"id":47984931,"name":"vivace","full_name":"inrhythm/vivace","owner":{"login":"inrhythm","id":3452711,"avatar_url":"https://avatars.githubusercontent.com/u/3452711?v=3","gravatar_id":"","url":"https://api.github.com/users/inrhythm","html_url":"https://github.com/inrhythm","followers_url":"https://api.github.com/users/inrhythm/followers","following_url":"https://api.github.com/users/inrhythm/following{/other_user}","gists_url":"https://api.github.com/users/inrhythm/gists{/gist_id}","starred_url":"https://api.github.com/users/inrhythm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inrhythm/subscriptions","organizations_url":"https://api.github.com/users/inrhythm/orgs","repos_url":"https://api.github.com/users/inrhythm/repos","events_url":"https://api.github.com/users/inrhythm/events{/privacy}","received_events_url":"https://api.github.com/users/inrhythm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inrhythm/vivace","description":"","fork":false,"url":"https://api.github.com/repos/inrhythm/vivace","forks_url":"https://api.github.com/repos/inrhythm/vivace/forks","keys_url":"https://api.github.com/repos/inrhythm/vivace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inrhythm/vivace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inrhythm/vivace/teams","hooks_url":"https://api.github.com/repos/inrhythm/vivace/hooks","issue_events_url":"https://api.github.com/repos/inrhythm/vivace/issues/events{/number}","events_url":"https://api.github.com/repos/inrhythm/vivace/events","assignees_url":"https://api.github.com/repos/inrhythm/vivace/assignees{/user}","branches_url":"https://api.github.com/repos/inrhythm/vivace/branches{/branch}","tags_url":"https://api.github.com/repos/inrhythm/vivace/tags","blobs_url":"https://api.github.com/repos/inrhythm/vivace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inrhythm/vivace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inrhythm/vivace/git/refs{/sha}","trees_url":"https://api.github.com/repos/inrhythm/vivace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inrhythm/vivace/statuses/{sha}","languages_url":"https://api.github.com/repos/inrhythm/vivace/languages","stargazers_url":"https://api.github.com/repos/inrhythm/vivace/stargazers","contributors_url":"https://api.github.com/repos/inrhythm/vivace/contributors","subscribers_url":"https://api.github.com/repos/inrhythm/vivace/subscribers","subscription_url":"https://api.github.com/repos/inrhythm/vivace/subscription","commits_url":"https://api.github.com/repos/inrhythm/vivace/commits{/sha}","git_commits_url":"https://api.github.com/repos/inrhythm/vivace/git/commits{/sha}","comments_url":"https://api.github.com/repos/inrhythm/vivace/comments{/number}","issue_comment_url":"https://api.github.com/repos/inrhythm/vivace/issues/comments{/number}","contents_url":"https://api.github.com/repos/inrhythm/vivace/contents/{+path}","compare_url":"https://api.github.com/repos/inrhythm/vivace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inrhythm/vivace/merges","archive_url":"https://api.github.com/repos/inrhythm/vivace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inrhythm/vivace/downloads","issues_url":"https://api.github.com/repos/inrhythm/vivace/issues{/number}","pulls_url":"https://api.github.com/repos/inrhythm/vivace/pulls{/number}","milestones_url":"https://api.github.com/repos/inrhythm/vivace/milestones{/number}","notifications_url":"https://api.github.com/repos/inrhythm/vivace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inrhythm/vivace/labels{/name}","releases_url":"https://api.github.com/repos/inrhythm/vivace/releases{/id}","created_at":"2015-12-14T15:51:34Z","updated_at":"2015-12-17T21:57:19Z","pushed_at":"2015-12-23T21:50:36Z","git_url":"git://github.com/inrhythm/vivace.git","ssh_url":"git@github.com:inrhythm/vivace.git","clone_url":"https://github.com/inrhythm/vivace.git","svn_url":"https://github.com/inrhythm/vivace","homepage":null,"size":680,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/inrhythm/vivace/pulls/53"},"html":{"href":"https://github.com/inrhythm/vivace/pull/53"},"issue":{"href":"https://api.github.com/repos/inrhythm/vivace/issues/53"},"comments":{"href":"https://api.github.com/repos/inrhythm/vivace/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/inrhythm/vivace/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/inrhythm/vivace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inrhythm/vivace/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/inrhythm/vivace/statuses/6631c76a1a02bfbe78d6fd55c0aacde328b3b43e"}}}}