{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/framky007/Blog-API/pulls/7","id":224600854,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NjAwODU0","html_url":"https://github.com/framky007/Blog-API/pull/7","diff_url":"https://github.com/framky007/Blog-API/pull/7.diff","patch_url":"https://github.com/framky007/Blog-API/pull/7.patch","issue_url":"https://api.github.com/repos/framky007/Blog-API/issues/7","number":7,"state":"closed","locked":false,"title":"set jwt authentication","user":{"login":"framky007","id":26327520,"node_id":"MDQ6VXNlcjI2MzI3NTIw","avatar_url":"https://avatars0.githubusercontent.com/u/26327520?v=4","gravatar_id":"","url":"https://api.github.com/users/framky007","html_url":"https://github.com/framky007","followers_url":"https://api.github.com/users/framky007/followers","following_url":"https://api.github.com/users/framky007/following{/other_user}","gists_url":"https://api.github.com/users/framky007/gists{/gist_id}","starred_url":"https://api.github.com/users/framky007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framky007/subscriptions","organizations_url":"https://api.github.com/users/framky007/orgs","repos_url":"https://api.github.com/users/framky007/repos","events_url":"https://api.github.com/users/framky007/events{/privacy}","received_events_url":"https://api.github.com/users/framky007/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n Set up JWT authentication to authenticate requests\r\n\r\n#### Description of Task to be completed?\r\n - The password should be encrypted before it's stored in the database\r\n - When the user email and password match the information in the database, a Token should be returned along with the respective status code\r\n - When the user email and password does not match the information in the database, an error message should be returned along with the respective status code\r\n\r\n#### How should this be manually tested?\r\n\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n - #155393756   ","created_at":"2018-10-22T06:51:58Z","updated_at":"2018-10-22T07:44:09Z","closed_at":"2018-10-22T07:44:08Z","merged_at":"2018-10-22T07:44:07Z","merge_commit_sha":"d7ddfdc1354580ee3ebdb406cfff2bf31b8bb717","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framky007/Blog-API/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framky007/Blog-API/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framky007/Blog-API/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framky007/Blog-API/issues/7/comments","statuses_url":"https://api.github.com/repos/framky007/Blog-API/statuses/30cc930c7bccde507c65ff60fcf8007df8e622e9","head":{"label":"framky007:ft-JWT-authentication-155393756","ref":"ft-JWT-authentication-155393756","sha":"30cc930c7bccde507c65ff60fcf8007df8e622e9","user":{"login":"framky007","id":26327520,"node_id":"MDQ6VXNlcjI2MzI3NTIw","avatar_url":"https://avatars0.githubusercontent.com/u/26327520?v=4","gravatar_id":"","url":"https://api.github.com/users/framky007","html_url":"https://github.com/framky007","followers_url":"https://api.github.com/users/framky007/followers","following_url":"https://api.github.com/users/framky007/following{/other_user}","gists_url":"https://api.github.com/users/framky007/gists{/gist_id}","starred_url":"https://api.github.com/users/framky007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framky007/subscriptions","organizations_url":"https://api.github.com/users/framky007/orgs","repos_url":"https://api.github.com/users/framky007/repos","events_url":"https://api.github.com/users/framky007/events{/privacy}","received_events_url":"https://api.github.com/users/framky007/received_events","type":"User","site_admin":false},"repo":{"id":121229222,"node_id":"MDEwOlJlcG9zaXRvcnkxMjEyMjkyMjI=","name":"Blog-API","full_name":"framky007/Blog-API","private":false,"owner":{"login":"framky007","id":26327520,"node_id":"MDQ6VXNlcjI2MzI3NTIw","avatar_url":"https://avatars0.githubusercontent.com/u/26327520?v=4","gravatar_id":"","url":"https://api.github.com/users/framky007","html_url":"https://github.com/framky007","followers_url":"https://api.github.com/users/framky007/followers","following_url":"https://api.github.com/users/framky007/following{/other_user}","gists_url":"https://api.github.com/users/framky007/gists{/gist_id}","starred_url":"https://api.github.com/users/framky007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framky007/subscriptions","organizations_url":"https://api.github.com/users/framky007/orgs","repos_url":"https://api.github.com/users/framky007/repos","events_url":"https://api.github.com/users/framky007/events{/privacy}","received_events_url":"https://api.github.com/users/framky007/received_events","type":"User","site_admin":false},"html_url":"https://github.com/framky007/Blog-API","description":"An API repo for blogs","fork":false,"url":"https://api.github.com/repos/framky007/Blog-API","forks_url":"https://api.github.com/repos/framky007/Blog-API/forks","keys_url":"https://api.github.com/repos/framky007/Blog-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framky007/Blog-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framky007/Blog-API/teams","hooks_url":"https://api.github.com/repos/framky007/Blog-API/hooks","issue_events_url":"https://api.github.com/repos/framky007/Blog-API/issues/events{/number}","events_url":"https://api.github.com/repos/framky007/Blog-API/events","assignees_url":"https://api.github.com/repos/framky007/Blog-API/assignees{/user}","branches_url":"https://api.github.com/repos/framky007/Blog-API/branches{/branch}","tags_url":"https://api.github.com/repos/framky007/Blog-API/tags","blobs_url":"https://api.github.com/repos/framky007/Blog-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framky007/Blog-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framky007/Blog-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/framky007/Blog-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framky007/Blog-API/statuses/{sha}","languages_url":"https://api.github.com/repos/framky007/Blog-API/languages","stargazers_url":"https://api.github.com/repos/framky007/Blog-API/stargazers","contributors_url":"https://api.github.com/repos/framky007/Blog-API/contributors","subscribers_url":"https://api.github.com/repos/framky007/Blog-API/subscribers","subscription_url":"https://api.github.com/repos/framky007/Blog-API/subscription","commits_url":"https://api.github.com/repos/framky007/Blog-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/framky007/Blog-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/framky007/Blog-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/framky007/Blog-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/framky007/Blog-API/contents/{+path}","compare_url":"https://api.github.com/repos/framky007/Blog-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framky007/Blog-API/merges","archive_url":"https://api.github.com/repos/framky007/Blog-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framky007/Blog-API/downloads","issues_url":"https://api.github.com/repos/framky007/Blog-API/issues{/number}","pulls_url":"https://api.github.com/repos/framky007/Blog-API/pulls{/number}","milestones_url":"https://api.github.com/repos/framky007/Blog-API/milestones{/number}","notifications_url":"https://api.github.com/repos/framky007/Blog-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framky007/Blog-API/labels{/name}","releases_url":"https://api.github.com/repos/framky007/Blog-API/releases{/id}","deployments_url":"https://api.github.com/repos/framky007/Blog-API/deployments","created_at":"2018-02-12T09:55:43Z","updated_at":"2018-04-17T12:19:23Z","pushed_at":"2018-10-22T07:44:07Z","git_url":"git://github.com/framky007/Blog-API.git","ssh_url":"git@github.com:framky007/Blog-API.git","clone_url":"https://github.com/framky007/Blog-API.git","svn_url":"https://github.com/framky007/Blog-API","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"framky007:develop","ref":"develop","sha":"dd3cdf143c8863c6658bf892a886d972a63b6e22","user":{"login":"framky007","id":26327520,"node_id":"MDQ6VXNlcjI2MzI3NTIw","avatar_url":"https://avatars0.githubusercontent.com/u/26327520?v=4","gravatar_id":"","url":"https://api.github.com/users/framky007","html_url":"https://github.com/framky007","followers_url":"https://api.github.com/users/framky007/followers","following_url":"https://api.github.com/users/framky007/following{/other_user}","gists_url":"https://api.github.com/users/framky007/gists{/gist_id}","starred_url":"https://api.github.com/users/framky007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framky007/subscriptions","organizations_url":"https://api.github.com/users/framky007/orgs","repos_url":"https://api.github.com/users/framky007/repos","events_url":"https://api.github.com/users/framky007/events{/privacy}","received_events_url":"https://api.github.com/users/framky007/received_events","type":"User","site_admin":false},"repo":{"id":121229222,"node_id":"MDEwOlJlcG9zaXRvcnkxMjEyMjkyMjI=","name":"Blog-API","full_name":"framky007/Blog-API","private":false,"owner":{"login":"framky007","id":26327520,"node_id":"MDQ6VXNlcjI2MzI3NTIw","avatar_url":"https://avatars0.githubusercontent.com/u/26327520?v=4","gravatar_id":"","url":"https://api.github.com/users/framky007","html_url":"https://github.com/framky007","followers_url":"https://api.github.com/users/framky007/followers","following_url":"https://api.github.com/users/framky007/following{/other_user}","gists_url":"https://api.github.com/users/framky007/gists{/gist_id}","starred_url":"https://api.github.com/users/framky007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framky007/subscriptions","organizations_url":"https://api.github.com/users/framky007/orgs","repos_url":"https://api.github.com/users/framky007/repos","events_url":"https://api.github.com/users/framky007/events{/privacy}","received_events_url":"https://api.github.com/users/framky007/received_events","type":"User","site_admin":false},"html_url":"https://github.com/framky007/Blog-API","description":"An API repo for blogs","fork":false,"url":"https://api.github.com/repos/framky007/Blog-API","forks_url":"https://api.github.com/repos/framky007/Blog-API/forks","keys_url":"https://api.github.com/repos/framky007/Blog-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framky007/Blog-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framky007/Blog-API/teams","hooks_url":"https://api.github.com/repos/framky007/Blog-API/hooks","issue_events_url":"https://api.github.com/repos/framky007/Blog-API/issues/events{/number}","events_url":"https://api.github.com/repos/framky007/Blog-API/events","assignees_url":"https://api.github.com/repos/framky007/Blog-API/assignees{/user}","branches_url":"https://api.github.com/repos/framky007/Blog-API/branches{/branch}","tags_url":"https://api.github.com/repos/framky007/Blog-API/tags","blobs_url":"https://api.github.com/repos/framky007/Blog-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framky007/Blog-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framky007/Blog-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/framky007/Blog-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framky007/Blog-API/statuses/{sha}","languages_url":"https://api.github.com/repos/framky007/Blog-API/languages","stargazers_url":"https://api.github.com/repos/framky007/Blog-API/stargazers","contributors_url":"https://api.github.com/repos/framky007/Blog-API/contributors","subscribers_url":"https://api.github.com/repos/framky007/Blog-API/subscribers","subscription_url":"https://api.github.com/repos/framky007/Blog-API/subscription","commits_url":"https://api.github.com/repos/framky007/Blog-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/framky007/Blog-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/framky007/Blog-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/framky007/Blog-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/framky007/Blog-API/contents/{+path}","compare_url":"https://api.github.com/repos/framky007/Blog-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framky007/Blog-API/merges","archive_url":"https://api.github.com/repos/framky007/Blog-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framky007/Blog-API/downloads","issues_url":"https://api.github.com/repos/framky007/Blog-API/issues{/number}","pulls_url":"https://api.github.com/repos/framky007/Blog-API/pulls{/number}","milestones_url":"https://api.github.com/repos/framky007/Blog-API/milestones{/number}","notifications_url":"https://api.github.com/repos/framky007/Blog-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framky007/Blog-API/labels{/name}","releases_url":"https://api.github.com/repos/framky007/Blog-API/releases{/id}","deployments_url":"https://api.github.com/repos/framky007/Blog-API/deployments","created_at":"2018-02-12T09:55:43Z","updated_at":"2018-04-17T12:19:23Z","pushed_at":"2018-10-22T07:44:07Z","git_url":"git://github.com/framky007/Blog-API.git","ssh_url":"git@github.com:framky007/Blog-API.git","clone_url":"https://github.com/framky007/Blog-API.git","svn_url":"https://github.com/framky007/Blog-API","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framky007/Blog-API/pulls/7"},"html":{"href":"https://github.com/framky007/Blog-API/pull/7"},"issue":{"href":"https://api.github.com/repos/framky007/Blog-API/issues/7"},"comments":{"href":"https://api.github.com/repos/framky007/Blog-API/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framky007/Blog-API/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framky007/Blog-API/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framky007/Blog-API/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framky007/Blog-API/statuses/30cc930c7bccde507c65ff60fcf8007df8e622e9"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"framky007","id":26327520,"node_id":"MDQ6VXNlcjI2MzI3NTIw","avatar_url":"https://avatars0.githubusercontent.com/u/26327520?v=4","gravatar_id":"","url":"https://api.github.com/users/framky007","html_url":"https://github.com/framky007","followers_url":"https://api.github.com/users/framky007/followers","following_url":"https://api.github.com/users/framky007/following{/other_user}","gists_url":"https://api.github.com/users/framky007/gists{/gist_id}","starred_url":"https://api.github.com/users/framky007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framky007/subscriptions","organizations_url":"https://api.github.com/users/framky007/orgs","repos_url":"https://api.github.com/users/framky007/repos","events_url":"https://api.github.com/users/framky007/events{/privacy}","received_events_url":"https://api.github.com/users/framky007/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":282,"deletions":243,"changed_files":19}}
{"actor":{"display_login":"framky007"}}