{"action":"created","comment":{"url":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/comments/129363151","pull_request_review_id":52098393,"id":129363151,"diff_hunk":"@@ -0,0 +1,31 @@\n+angular.module('app-bootstrap').factory('authenticationService', [\n+  'httpService', '$http', 'localStorageService', '$state',\n+  function (httpService, $http, localStorageService, $state) {\n+\n+    return {\n+      login: (params) => {\n+        const defaultSuccessCb = (data) => {\n+          localStorageService.set('session_token', data.data.user.session_token);","path":"src/app/services/authenticationService.js","position":8,"original_position":8,"commit_id":"ee359f3a8f5615584004c56bc02b94c71eb31362","original_commit_id":"ee359f3a8f5615584004c56bc02b94c71eb31362","user":{"login":"SKOLZ","id":667262,"avatar_url":"https://avatars3.githubusercontent.com/u/667262?v=4","gravatar_id":"","url":"https://api.github.com/users/SKOLZ","html_url":"https://github.com/SKOLZ","followers_url":"https://api.github.com/users/SKOLZ/followers","following_url":"https://api.github.com/users/SKOLZ/following{/other_user}","gists_url":"https://api.github.com/users/SKOLZ/gists{/gist_id}","starred_url":"https://api.github.com/users/SKOLZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SKOLZ/subscriptions","organizations_url":"https://api.github.com/users/SKOLZ/orgs","repos_url":"https://api.github.com/users/SKOLZ/repos","events_url":"https://api.github.com/users/SKOLZ/events{/privacy}","received_events_url":"https://api.github.com/users/SKOLZ/received_events","type":"User","site_admin":false},"body":"I think we should also set the user in the rootscope and have a method to get the logged user that returns the rootscope user or fetches it from the local storage (when it fetches it from the local storage it should be saved in the rootscope too).","created_at":"2017-07-25T16:55:43Z","updated_at":"2017-07-25T16:56:09Z","html_url":"https://github.com/Wolox/frontend-bootstrap/pull/89#discussion_r129363151","pull_request_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/89","_links":{"self":{"href":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/comments/129363151"},"html":{"href":"https://github.com/Wolox/frontend-bootstrap/pull/89#discussion_r129363151"},"pull_request":{"href":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/89"}}},"pull_request":{"url":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/89","id":125063282,"html_url":"https://github.com/Wolox/frontend-bootstrap/pull/89","diff_url":"https://github.com/Wolox/frontend-bootstrap/pull/89.diff","patch_url":"https://github.com/Wolox/frontend-bootstrap/pull/89.patch","issue_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/issues/89","number":89,"state":"open","locked":false,"title":"Authentication","user":{"login":"JessSaavedra","id":7197057,"avatar_url":"https://avatars3.githubusercontent.com/u/7197057?v=4","gravatar_id":"","url":"https://api.github.com/users/JessSaavedra","html_url":"https://github.com/JessSaavedra","followers_url":"https://api.github.com/users/JessSaavedra/followers","following_url":"https://api.github.com/users/JessSaavedra/following{/other_user}","gists_url":"https://api.github.com/users/JessSaavedra/gists{/gist_id}","starred_url":"https://api.github.com/users/JessSaavedra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessSaavedra/subscriptions","organizations_url":"https://api.github.com/users/JessSaavedra/orgs","repos_url":"https://api.github.com/users/JessSaavedra/repos","events_url":"https://api.github.com/users/JessSaavedra/events{/privacy}","received_events_url":"https://api.github.com/users/JessSaavedra/received_events","type":"User","site_admin":false},"body":"Added httpService, lodash and authentication service and controller","created_at":"2017-06-12T05:33:19Z","updated_at":"2017-07-25T16:56:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff4ff20e264e985654827ebc2d207ecb8692ad15","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/89/commits","review_comments_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/89/comments","review_comment_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/issues/89/comments","statuses_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/statuses/ee359f3a8f5615584004c56bc02b94c71eb31362","head":{"label":"JessSaavedra:authentication","ref":"authentication","sha":"ee359f3a8f5615584004c56bc02b94c71eb31362","user":{"login":"JessSaavedra","id":7197057,"avatar_url":"https://avatars3.githubusercontent.com/u/7197057?v=4","gravatar_id":"","url":"https://api.github.com/users/JessSaavedra","html_url":"https://github.com/JessSaavedra","followers_url":"https://api.github.com/users/JessSaavedra/followers","following_url":"https://api.github.com/users/JessSaavedra/following{/other_user}","gists_url":"https://api.github.com/users/JessSaavedra/gists{/gist_id}","starred_url":"https://api.github.com/users/JessSaavedra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessSaavedra/subscriptions","organizations_url":"https://api.github.com/users/JessSaavedra/orgs","repos_url":"https://api.github.com/users/JessSaavedra/repos","events_url":"https://api.github.com/users/JessSaavedra/events{/privacy}","received_events_url":"https://api.github.com/users/JessSaavedra/received_events","type":"User","site_admin":false},"repo":{"id":94028872,"name":"frontend-bootstrap","full_name":"JessSaavedra/frontend-bootstrap","owner":{"login":"JessSaavedra","id":7197057,"avatar_url":"https://avatars3.githubusercontent.com/u/7197057?v=4","gravatar_id":"","url":"https://api.github.com/users/JessSaavedra","html_url":"https://github.com/JessSaavedra","followers_url":"https://api.github.com/users/JessSaavedra/followers","following_url":"https://api.github.com/users/JessSaavedra/following{/other_user}","gists_url":"https://api.github.com/users/JessSaavedra/gists{/gist_id}","starred_url":"https://api.github.com/users/JessSaavedra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessSaavedra/subscriptions","organizations_url":"https://api.github.com/users/JessSaavedra/orgs","repos_url":"https://api.github.com/users/JessSaavedra/repos","events_url":"https://api.github.com/users/JessSaavedra/events{/privacy}","received_events_url":"https://api.github.com/users/JessSaavedra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JessSaavedra/frontend-bootstrap","description":null,"fork":true,"url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap","forks_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/forks","keys_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/teams","hooks_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/hooks","issue_events_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/issues/events{/number}","events_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/events","assignees_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/assignees{/user}","branches_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/branches{/branch}","tags_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/tags","blobs_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/statuses/{sha}","languages_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/languages","stargazers_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/stargazers","contributors_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/contributors","subscribers_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/subscribers","subscription_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/subscription","commits_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/contents/{+path}","compare_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/merges","archive_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/downloads","issues_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/issues{/number}","pulls_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/pulls{/number}","milestones_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/milestones{/number}","notifications_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/labels{/name}","releases_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/releases{/id}","deployments_url":"https://api.github.com/repos/JessSaavedra/frontend-bootstrap/deployments","created_at":"2017-06-11T20:05:28Z","updated_at":"2017-06-11T20:05:30Z","pushed_at":"2017-07-22T02:40:02Z","git_url":"git://github.com/JessSaavedra/frontend-bootstrap.git","ssh_url":"git@github.com:JessSaavedra/frontend-bootstrap.git","clone_url":"https://github.com/JessSaavedra/frontend-bootstrap.git","svn_url":"https://github.com/JessSaavedra/frontend-bootstrap","homepage":null,"size":1090,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"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":"Wolox:angular","ref":"angular","sha":"23459576db6177faa0ee8bb522620e823a4e1656","user":{"login":"Wolox","id":1046241,"avatar_url":"https://avatars3.githubusercontent.com/u/1046241?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolox","html_url":"https://github.com/Wolox","followers_url":"https://api.github.com/users/Wolox/followers","following_url":"https://api.github.com/users/Wolox/following{/other_user}","gists_url":"https://api.github.com/users/Wolox/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolox/subscriptions","organizations_url":"https://api.github.com/users/Wolox/orgs","repos_url":"https://api.github.com/users/Wolox/repos","events_url":"https://api.github.com/users/Wolox/events{/privacy}","received_events_url":"https://api.github.com/users/Wolox/received_events","type":"Organization","site_admin":false},"repo":{"id":34071518,"name":"frontend-bootstrap","full_name":"Wolox/frontend-bootstrap","owner":{"login":"Wolox","id":1046241,"avatar_url":"https://avatars3.githubusercontent.com/u/1046241?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolox","html_url":"https://github.com/Wolox","followers_url":"https://api.github.com/users/Wolox/followers","following_url":"https://api.github.com/users/Wolox/following{/other_user}","gists_url":"https://api.github.com/users/Wolox/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolox/subscriptions","organizations_url":"https://api.github.com/users/Wolox/orgs","repos_url":"https://api.github.com/users/Wolox/repos","events_url":"https://api.github.com/users/Wolox/events{/privacy}","received_events_url":"https://api.github.com/users/Wolox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wolox/frontend-bootstrap","description":null,"fork":false,"url":"https://api.github.com/repos/Wolox/frontend-bootstrap","forks_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/forks","keys_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/teams","hooks_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/hooks","issue_events_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/issues/events{/number}","events_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/events","assignees_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/assignees{/user}","branches_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/branches{/branch}","tags_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/tags","blobs_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/statuses/{sha}","languages_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/languages","stargazers_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/stargazers","contributors_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/contributors","subscribers_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/subscribers","subscription_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/subscription","commits_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/contents/{+path}","compare_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/merges","archive_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/downloads","issues_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/issues{/number}","pulls_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls{/number}","milestones_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/milestones{/number}","notifications_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/labels{/name}","releases_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/releases{/id}","deployments_url":"https://api.github.com/repos/Wolox/frontend-bootstrap/deployments","created_at":"2015-04-16T17:55:26Z","updated_at":"2017-07-14T11:44:37Z","pushed_at":"2017-07-22T02:40:04Z","git_url":"git://github.com/Wolox/frontend-bootstrap.git","ssh_url":"git@github.com:Wolox/frontend-bootstrap.git","clone_url":"https://github.com/Wolox/frontend-bootstrap.git","svn_url":"https://github.com/Wolox/frontend-bootstrap","homepage":null,"size":1085,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":12,"forks":15,"open_issues":12,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/89"},"html":{"href":"https://github.com/Wolox/frontend-bootstrap/pull/89"},"issue":{"href":"https://api.github.com/repos/Wolox/frontend-bootstrap/issues/89"},"comments":{"href":"https://api.github.com/repos/Wolox/frontend-bootstrap/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wolox/frontend-bootstrap/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/Wolox/frontend-bootstrap/statuses/ee359f3a8f5615584004c56bc02b94c71eb31362"}}}}
{"actor":{"display_login":"SKOLZ"}}