{"action":"opened","number":147,"pull_request":{"url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/pulls/147","id":64117733,"html_url":"https://github.com/vivacioustoaster/vivacioustoaster/pull/147","diff_url":"https://github.com/vivacioustoaster/vivacioustoaster/pull/147.diff","patch_url":"https://github.com/vivacioustoaster/vivacioustoaster/pull/147.patch","issue_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/issues/147","number":147,"state":"open","locked":false,"title":"Connect user api calls in client, integrate FB auth","user":{"login":"boyajay","id":13592079,"avatar_url":"https://avatars.githubusercontent.com/u/13592079?v=3","gravatar_id":"","url":"https://api.github.com/users/boyajay","html_url":"https://github.com/boyajay","followers_url":"https://api.github.com/users/boyajay/followers","following_url":"https://api.github.com/users/boyajay/following{/other_user}","gists_url":"https://api.github.com/users/boyajay/gists{/gist_id}","starred_url":"https://api.github.com/users/boyajay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyajay/subscriptions","organizations_url":"https://api.github.com/users/boyajay/orgs","repos_url":"https://api.github.com/users/boyajay/repos","events_url":"https://api.github.com/users/boyajay/events{/privacy}","received_events_url":"https://api.github.com/users/boyajay/received_events","type":"User","site_admin":false},"body":"#### What's this PR do?\r\n1) protect all routes except 'Auth' with a wrapper that checks for authentication\r\n2) redirect unauthorized access to the Auth page\r\n3) automatically login to server if token cookie exists\r\n4) integrate all user functions and actions\r\n#### Any background context you want to provide?\r\nStill require Friends\r\n#### What are the relevant tickets/issues?\r\ncloses #60 , #41 , #2 \r\n#### Where should the reviewer start?\r\napp/routes.js - protection of routes\r\nauthActions - auth related functions\r\nheader - add logout button\r\n#### Are there tests written yet? How should this be manually tested?\r\nno\r\n#### Screenshots (if appropriate)\r\n#### Questions:\r\n- Does this add new dependencies?\r\nredux-auth-wrapper,\r\nreact-cookie,\r\n- Does our documentation need to be updated?\r\nno","created_at":"2016-03-25T00:23:23Z","updated_at":"2016-03-25T00:23:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/pulls/147/commits","review_comments_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/pulls/147/comments","review_comment_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/issues/147/comments","statuses_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/statuses/50c2a8ec4f7de22d75c64201b4ab276daec7bad7","head":{"label":"boyajay:frontEnd-users","ref":"frontEnd-users","sha":"50c2a8ec4f7de22d75c64201b4ab276daec7bad7","user":{"login":"boyajay","id":13592079,"avatar_url":"https://avatars.githubusercontent.com/u/13592079?v=3","gravatar_id":"","url":"https://api.github.com/users/boyajay","html_url":"https://github.com/boyajay","followers_url":"https://api.github.com/users/boyajay/followers","following_url":"https://api.github.com/users/boyajay/following{/other_user}","gists_url":"https://api.github.com/users/boyajay/gists{/gist_id}","starred_url":"https://api.github.com/users/boyajay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyajay/subscriptions","organizations_url":"https://api.github.com/users/boyajay/orgs","repos_url":"https://api.github.com/users/boyajay/repos","events_url":"https://api.github.com/users/boyajay/events{/privacy}","received_events_url":"https://api.github.com/users/boyajay/received_events","type":"User","site_admin":false},"repo":{"id":53694479,"name":"vivacioustoaster","full_name":"boyajay/vivacioustoaster","owner":{"login":"boyajay","id":13592079,"avatar_url":"https://avatars.githubusercontent.com/u/13592079?v=3","gravatar_id":"","url":"https://api.github.com/users/boyajay","html_url":"https://github.com/boyajay","followers_url":"https://api.github.com/users/boyajay/followers","following_url":"https://api.github.com/users/boyajay/following{/other_user}","gists_url":"https://api.github.com/users/boyajay/gists{/gist_id}","starred_url":"https://api.github.com/users/boyajay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyajay/subscriptions","organizations_url":"https://api.github.com/users/boyajay/orgs","repos_url":"https://api.github.com/users/boyajay/repos","events_url":"https://api.github.com/users/boyajay/events{/privacy}","received_events_url":"https://api.github.com/users/boyajay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boyajay/vivacioustoaster","description":"","fork":true,"url":"https://api.github.com/repos/boyajay/vivacioustoaster","forks_url":"https://api.github.com/repos/boyajay/vivacioustoaster/forks","keys_url":"https://api.github.com/repos/boyajay/vivacioustoaster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boyajay/vivacioustoaster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boyajay/vivacioustoaster/teams","hooks_url":"https://api.github.com/repos/boyajay/vivacioustoaster/hooks","issue_events_url":"https://api.github.com/repos/boyajay/vivacioustoaster/issues/events{/number}","events_url":"https://api.github.com/repos/boyajay/vivacioustoaster/events","assignees_url":"https://api.github.com/repos/boyajay/vivacioustoaster/assignees{/user}","branches_url":"https://api.github.com/repos/boyajay/vivacioustoaster/branches{/branch}","tags_url":"https://api.github.com/repos/boyajay/vivacioustoaster/tags","blobs_url":"https://api.github.com/repos/boyajay/vivacioustoaster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boyajay/vivacioustoaster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boyajay/vivacioustoaster/git/refs{/sha}","trees_url":"https://api.github.com/repos/boyajay/vivacioustoaster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boyajay/vivacioustoaster/statuses/{sha}","languages_url":"https://api.github.com/repos/boyajay/vivacioustoaster/languages","stargazers_url":"https://api.github.com/repos/boyajay/vivacioustoaster/stargazers","contributors_url":"https://api.github.com/repos/boyajay/vivacioustoaster/contributors","subscribers_url":"https://api.github.com/repos/boyajay/vivacioustoaster/subscribers","subscription_url":"https://api.github.com/repos/boyajay/vivacioustoaster/subscription","commits_url":"https://api.github.com/repos/boyajay/vivacioustoaster/commits{/sha}","git_commits_url":"https://api.github.com/repos/boyajay/vivacioustoaster/git/commits{/sha}","comments_url":"https://api.github.com/repos/boyajay/vivacioustoaster/comments{/number}","issue_comment_url":"https://api.github.com/repos/boyajay/vivacioustoaster/issues/comments{/number}","contents_url":"https://api.github.com/repos/boyajay/vivacioustoaster/contents/{+path}","compare_url":"https://api.github.com/repos/boyajay/vivacioustoaster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boyajay/vivacioustoaster/merges","archive_url":"https://api.github.com/repos/boyajay/vivacioustoaster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boyajay/vivacioustoaster/downloads","issues_url":"https://api.github.com/repos/boyajay/vivacioustoaster/issues{/number}","pulls_url":"https://api.github.com/repos/boyajay/vivacioustoaster/pulls{/number}","milestones_url":"https://api.github.com/repos/boyajay/vivacioustoaster/milestones{/number}","notifications_url":"https://api.github.com/repos/boyajay/vivacioustoaster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boyajay/vivacioustoaster/labels{/name}","releases_url":"https://api.github.com/repos/boyajay/vivacioustoaster/releases{/id}","deployments_url":"https://api.github.com/repos/boyajay/vivacioustoaster/deployments","created_at":"2016-03-11T20:21:26Z","updated_at":"2016-03-10T23:16:59Z","pushed_at":"2016-03-25T00:22:40Z","git_url":"git://github.com/boyajay/vivacioustoaster.git","ssh_url":"git@github.com:boyajay/vivacioustoaster.git","clone_url":"https://github.com/boyajay/vivacioustoaster.git","svn_url":"https://github.com/boyajay/vivacioustoaster","homepage":null,"size":6513,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vivacioustoaster:master","ref":"master","sha":"fc88e8ae75320d69635f72ae33edb24122a9341f","user":{"login":"vivacioustoaster","id":17732369,"avatar_url":"https://avatars.githubusercontent.com/u/17732369?v=3","gravatar_id":"","url":"https://api.github.com/users/vivacioustoaster","html_url":"https://github.com/vivacioustoaster","followers_url":"https://api.github.com/users/vivacioustoaster/followers","following_url":"https://api.github.com/users/vivacioustoaster/following{/other_user}","gists_url":"https://api.github.com/users/vivacioustoaster/gists{/gist_id}","starred_url":"https://api.github.com/users/vivacioustoaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivacioustoaster/subscriptions","organizations_url":"https://api.github.com/users/vivacioustoaster/orgs","repos_url":"https://api.github.com/users/vivacioustoaster/repos","events_url":"https://api.github.com/users/vivacioustoaster/events{/privacy}","received_events_url":"https://api.github.com/users/vivacioustoaster/received_events","type":"Organization","site_admin":false},"repo":{"id":53624236,"name":"vivacioustoaster","full_name":"vivacioustoaster/vivacioustoaster","owner":{"login":"vivacioustoaster","id":17732369,"avatar_url":"https://avatars.githubusercontent.com/u/17732369?v=3","gravatar_id":"","url":"https://api.github.com/users/vivacioustoaster","html_url":"https://github.com/vivacioustoaster","followers_url":"https://api.github.com/users/vivacioustoaster/followers","following_url":"https://api.github.com/users/vivacioustoaster/following{/other_user}","gists_url":"https://api.github.com/users/vivacioustoaster/gists{/gist_id}","starred_url":"https://api.github.com/users/vivacioustoaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivacioustoaster/subscriptions","organizations_url":"https://api.github.com/users/vivacioustoaster/orgs","repos_url":"https://api.github.com/users/vivacioustoaster/repos","events_url":"https://api.github.com/users/vivacioustoaster/events{/privacy}","received_events_url":"https://api.github.com/users/vivacioustoaster/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vivacioustoaster/vivacioustoaster","description":"","fork":false,"url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster","forks_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/forks","keys_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/teams","hooks_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/hooks","issue_events_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/issues/events{/number}","events_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/events","assignees_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/assignees{/user}","branches_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/branches{/branch}","tags_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/tags","blobs_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/git/refs{/sha}","trees_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/statuses/{sha}","languages_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/languages","stargazers_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/stargazers","contributors_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/contributors","subscribers_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/subscribers","subscription_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/subscription","commits_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/commits{/sha}","git_commits_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/git/commits{/sha}","comments_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/comments{/number}","issue_comment_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/issues/comments{/number}","contents_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/contents/{+path}","compare_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/merges","archive_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/downloads","issues_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/issues{/number}","pulls_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/pulls{/number}","milestones_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/milestones{/number}","notifications_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/labels{/name}","releases_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/releases{/id}","deployments_url":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/deployments","created_at":"2016-03-10T23:16:59Z","updated_at":"2016-03-22T15:56:39Z","pushed_at":"2016-03-25T00:06:55Z","git_url":"git://github.com/vivacioustoaster/vivacioustoaster.git","ssh_url":"git@github.com:vivacioustoaster/vivacioustoaster.git","clone_url":"https://github.com/vivacioustoaster/vivacioustoaster.git","svn_url":"https://github.com/vivacioustoaster/vivacioustoaster","homepage":null,"size":3682,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":41,"forks":4,"open_issues":41,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/pulls/147"},"html":{"href":"https://github.com/vivacioustoaster/vivacioustoaster/pull/147"},"issue":{"href":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/issues/147"},"comments":{"href":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/vivacioustoaster/vivacioustoaster/statuses/50c2a8ec4f7de22d75c64201b4ab276daec7bad7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":17,"additions":119,"deletions":52,"changed_files":7}}