{"action":"created","comment":{"url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/comments/59469850","id":59469850,"diff_hunk":"@@ -1,5 +1,5 @@\n MANIACChess::Application.routes.draw do\n-  devise_for :users\n+  devise_for :users, :controllers => { :omniauth_callbacks => \"users/omniauth_callbacks\" }","path":"config/routes.rb","position":3,"original_position":3,"commit_id":"a1b5c1446bb9a77377cd3999e1f7317512836a8e","original_commit_id":"a1b5c1446bb9a77377cd3999e1f7317512836a8e","user":{"login":"kenortiz","id":15789501,"avatar_url":"https://avatars.githubusercontent.com/u/15789501?v=3","gravatar_id":"","url":"https://api.github.com/users/kenortiz","html_url":"https://github.com/kenortiz","followers_url":"https://api.github.com/users/kenortiz/followers","following_url":"https://api.github.com/users/kenortiz/following{/other_user}","gists_url":"https://api.github.com/users/kenortiz/gists{/gist_id}","starred_url":"https://api.github.com/users/kenortiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenortiz/subscriptions","organizations_url":"https://api.github.com/users/kenortiz/orgs","repos_url":"https://api.github.com/users/kenortiz/repos","events_url":"https://api.github.com/users/kenortiz/events{/privacy}","received_events_url":"https://api.github.com/users/kenortiz/received_events","type":"User","site_admin":false},"body":"I might have it mixed up though lol","created_at":"2016-04-12T23:09:34Z","updated_at":"2016-04-12T23:09:34Z","html_url":"https://github.com/fp-team-maniac/maniac-chess/pull/4#discussion_r59469850","pull_request_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/comments/59469850"},"html":{"href":"https://github.com/fp-team-maniac/maniac-chess/pull/4#discussion_r59469850"},"pull_request":{"href":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/4","id":66102678,"html_url":"https://github.com/fp-team-maniac/maniac-chess/pull/4","diff_url":"https://github.com/fp-team-maniac/maniac-chess/pull/4.diff","patch_url":"https://github.com/fp-team-maniac/maniac-chess/pull/4.patch","issue_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/issues/4","number":4,"state":"open","locked":false,"title":"Setup OmniAuth","user":{"login":"kenortiz","id":15789501,"avatar_url":"https://avatars.githubusercontent.com/u/15789501?v=3","gravatar_id":"","url":"https://api.github.com/users/kenortiz","html_url":"https://github.com/kenortiz","followers_url":"https://api.github.com/users/kenortiz/followers","following_url":"https://api.github.com/users/kenortiz/following{/other_user}","gists_url":"https://api.github.com/users/kenortiz/gists{/gist_id}","starred_url":"https://api.github.com/users/kenortiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenortiz/subscriptions","organizations_url":"https://api.github.com/users/kenortiz/orgs","repos_url":"https://api.github.com/users/kenortiz/repos","events_url":"https://api.github.com/users/kenortiz/events{/privacy}","received_events_url":"https://api.github.com/users/kenortiz/received_events","type":"User","site_admin":false},"body":"#### Providers\r\n---\r\nProviders were discussed in Slack on 4/9.\r\n* Facebook\r\n* Google\r\n\r\n#### Steps Taken\r\n---\r\n* Installed omniauth-google-oauth2 and omniauth-facebook gems\r\n* Added columns for provider and uid in users table\r\n* Declared providers in devise.rb\r\n* Made User model omniauthable\r\n* Defined omniauth callback routes in routes.rb\r\n* Generated OmniauthCallbacks controller and added method for each provider. If callback is successful, user will be redirected with successful authentication, otherwise user will be redirected to new user registration.\r\n\r\n#### Resources \r\n---\r\nDevise Wiki: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview\r\nGoogle-oauth2: https://github.com/zquestz/omniauth-google-oauth2","created_at":"2016-04-12T05:29:57Z","updated_at":"2016-04-12T23:09:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/4/commits","review_comments_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/4/comments","review_comment_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/issues/4/comments","statuses_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/statuses/a1b5c1446bb9a77377cd3999e1f7317512836a8e","head":{"label":"fp-team-maniac:new-feature/omniauth-authentication","ref":"new-feature/omniauth-authentication","sha":"a1b5c1446bb9a77377cd3999e1f7317512836a8e","user":{"login":"fp-team-maniac","id":18320140,"avatar_url":"https://avatars.githubusercontent.com/u/18320140?v=3","gravatar_id":"","url":"https://api.github.com/users/fp-team-maniac","html_url":"https://github.com/fp-team-maniac","followers_url":"https://api.github.com/users/fp-team-maniac/followers","following_url":"https://api.github.com/users/fp-team-maniac/following{/other_user}","gists_url":"https://api.github.com/users/fp-team-maniac/gists{/gist_id}","starred_url":"https://api.github.com/users/fp-team-maniac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fp-team-maniac/subscriptions","organizations_url":"https://api.github.com/users/fp-team-maniac/orgs","repos_url":"https://api.github.com/users/fp-team-maniac/repos","events_url":"https://api.github.com/users/fp-team-maniac/events{/privacy}","received_events_url":"https://api.github.com/users/fp-team-maniac/received_events","type":"Organization","site_admin":false},"repo":{"id":55660231,"name":"maniac-chess","full_name":"fp-team-maniac/maniac-chess","owner":{"login":"fp-team-maniac","id":18320140,"avatar_url":"https://avatars.githubusercontent.com/u/18320140?v=3","gravatar_id":"","url":"https://api.github.com/users/fp-team-maniac","html_url":"https://github.com/fp-team-maniac","followers_url":"https://api.github.com/users/fp-team-maniac/followers","following_url":"https://api.github.com/users/fp-team-maniac/following{/other_user}","gists_url":"https://api.github.com/users/fp-team-maniac/gists{/gist_id}","starred_url":"https://api.github.com/users/fp-team-maniac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fp-team-maniac/subscriptions","organizations_url":"https://api.github.com/users/fp-team-maniac/orgs","repos_url":"https://api.github.com/users/fp-team-maniac/repos","events_url":"https://api.github.com/users/fp-team-maniac/events{/privacy}","received_events_url":"https://api.github.com/users/fp-team-maniac/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fp-team-maniac/maniac-chess","description":"","fork":false,"url":"https://api.github.com/repos/fp-team-maniac/maniac-chess","forks_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/forks","keys_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/teams","hooks_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/hooks","issue_events_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/issues/events{/number}","events_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/events","assignees_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/assignees{/user}","branches_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/branches{/branch}","tags_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/tags","blobs_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/git/refs{/sha}","trees_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/statuses/{sha}","languages_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/languages","stargazers_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/stargazers","contributors_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/contributors","subscribers_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/subscribers","subscription_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/subscription","commits_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/commits{/sha}","git_commits_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/git/commits{/sha}","comments_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/comments{/number}","issue_comment_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/issues/comments{/number}","contents_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/contents/{+path}","compare_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/merges","archive_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/downloads","issues_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/issues{/number}","pulls_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls{/number}","milestones_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/milestones{/number}","notifications_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/labels{/name}","releases_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/releases{/id}","deployments_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/deployments","created_at":"2016-04-07T03:20:13Z","updated_at":"2016-04-08T03:17:52Z","pushed_at":"2016-04-12T17:54:16Z","git_url":"git://github.com/fp-team-maniac/maniac-chess.git","ssh_url":"git@github.com:fp-team-maniac/maniac-chess.git","clone_url":"https://github.com/fp-team-maniac/maniac-chess.git","svn_url":"https://github.com/fp-team-maniac/maniac-chess","homepage":null,"size":47,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"fp-team-maniac:master","ref":"master","sha":"5668510b9bfc4956d8d9a883e5b50926864d1c37","user":{"login":"fp-team-maniac","id":18320140,"avatar_url":"https://avatars.githubusercontent.com/u/18320140?v=3","gravatar_id":"","url":"https://api.github.com/users/fp-team-maniac","html_url":"https://github.com/fp-team-maniac","followers_url":"https://api.github.com/users/fp-team-maniac/followers","following_url":"https://api.github.com/users/fp-team-maniac/following{/other_user}","gists_url":"https://api.github.com/users/fp-team-maniac/gists{/gist_id}","starred_url":"https://api.github.com/users/fp-team-maniac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fp-team-maniac/subscriptions","organizations_url":"https://api.github.com/users/fp-team-maniac/orgs","repos_url":"https://api.github.com/users/fp-team-maniac/repos","events_url":"https://api.github.com/users/fp-team-maniac/events{/privacy}","received_events_url":"https://api.github.com/users/fp-team-maniac/received_events","type":"Organization","site_admin":false},"repo":{"id":55660231,"name":"maniac-chess","full_name":"fp-team-maniac/maniac-chess","owner":{"login":"fp-team-maniac","id":18320140,"avatar_url":"https://avatars.githubusercontent.com/u/18320140?v=3","gravatar_id":"","url":"https://api.github.com/users/fp-team-maniac","html_url":"https://github.com/fp-team-maniac","followers_url":"https://api.github.com/users/fp-team-maniac/followers","following_url":"https://api.github.com/users/fp-team-maniac/following{/other_user}","gists_url":"https://api.github.com/users/fp-team-maniac/gists{/gist_id}","starred_url":"https://api.github.com/users/fp-team-maniac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fp-team-maniac/subscriptions","organizations_url":"https://api.github.com/users/fp-team-maniac/orgs","repos_url":"https://api.github.com/users/fp-team-maniac/repos","events_url":"https://api.github.com/users/fp-team-maniac/events{/privacy}","received_events_url":"https://api.github.com/users/fp-team-maniac/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fp-team-maniac/maniac-chess","description":"","fork":false,"url":"https://api.github.com/repos/fp-team-maniac/maniac-chess","forks_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/forks","keys_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/teams","hooks_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/hooks","issue_events_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/issues/events{/number}","events_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/events","assignees_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/assignees{/user}","branches_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/branches{/branch}","tags_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/tags","blobs_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/git/refs{/sha}","trees_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/statuses/{sha}","languages_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/languages","stargazers_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/stargazers","contributors_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/contributors","subscribers_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/subscribers","subscription_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/subscription","commits_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/commits{/sha}","git_commits_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/git/commits{/sha}","comments_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/comments{/number}","issue_comment_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/issues/comments{/number}","contents_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/contents/{+path}","compare_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/merges","archive_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/downloads","issues_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/issues{/number}","pulls_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls{/number}","milestones_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/milestones{/number}","notifications_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/labels{/name}","releases_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/releases{/id}","deployments_url":"https://api.github.com/repos/fp-team-maniac/maniac-chess/deployments","created_at":"2016-04-07T03:20:13Z","updated_at":"2016-04-08T03:17:52Z","pushed_at":"2016-04-12T17:54:16Z","git_url":"git://github.com/fp-team-maniac/maniac-chess.git","ssh_url":"git@github.com:fp-team-maniac/maniac-chess.git","clone_url":"https://github.com/fp-team-maniac/maniac-chess.git","svn_url":"https://github.com/fp-team-maniac/maniac-chess","homepage":null,"size":47,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/4"},"html":{"href":"https://github.com/fp-team-maniac/maniac-chess/pull/4"},"issue":{"href":"https://api.github.com/repos/fp-team-maniac/maniac-chess/issues/4"},"comments":{"href":"https://api.github.com/repos/fp-team-maniac/maniac-chess/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fp-team-maniac/maniac-chess/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/fp-team-maniac/maniac-chess/statuses/a1b5c1446bb9a77377cd3999e1f7317512836a8e"}}}}