{"action":"created","comment":{"url":"https://api.github.com/repos/76room/apollo/pulls/comments/144688718","pull_request_review_id":69386316,"id":144688718,"diff_hunk":"@@ -0,0 +1,72 @@\n+package org.room.apollo.server.service;\n+\n+import com.fasterxml.jackson.databind.ObjectMapper;\n+import org.room.apollo.server.configuration.DeezerConfiguration;\n+import org.room.apollo.server.dto.deezer.DeezerToken;\n+import org.room.apollo.server.util.HttpUtil;\n+import org.springframework.http.HttpHeaders;\n+import org.springframework.http.HttpStatus;\n+import org.springframework.http.ResponseEntity;\n+import org.springframework.stereotype.Service;\n+\n+import java.io.IOException;\n+import java.net.URI;\n+import java.net.URISyntaxException;\n+\n+/**\n+ * Service for authorization methods.\n+ */\n+@Service\n+public class AuthorizationService {\n+\n+    private DeezerConfiguration deezerConfiguration;","path":"server/src/main/java/org/room/apollo/server/service/AuthorizationService.java","position":22,"original_position":22,"commit_id":"955cd331966550a88c316526b4d715455f6c9361","original_commit_id":"955cd331966550a88c316526b4d715455f6c9361","user":{"login":"uaArsen","id":18464641,"avatar_url":"https://avatars0.githubusercontent.com/u/18464641?v=4","gravatar_id":"","url":"https://api.github.com/users/uaArsen","html_url":"https://github.com/uaArsen","followers_url":"https://api.github.com/users/uaArsen/followers","following_url":"https://api.github.com/users/uaArsen/following{/other_user}","gists_url":"https://api.github.com/users/uaArsen/gists{/gist_id}","starred_url":"https://api.github.com/users/uaArsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uaArsen/subscriptions","organizations_url":"https://api.github.com/users/uaArsen/orgs","repos_url":"https://api.github.com/users/uaArsen/repos","events_url":"https://api.github.com/users/uaArsen/events{/privacy}","received_events_url":"https://api.github.com/users/uaArsen/received_events","type":"User","site_admin":false},"body":"We are Autowiring through constructor. ","created_at":"2017-10-14T07:35:08Z","updated_at":"2017-10-14T07:35:08Z","html_url":"https://github.com/76room/apollo/pull/4#discussion_r144688718","pull_request_url":"https://api.github.com/repos/76room/apollo/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/76room/apollo/pulls/comments/144688718"},"html":{"href":"https://github.com/76room/apollo/pull/4#discussion_r144688718"},"pull_request":{"href":"https://api.github.com/repos/76room/apollo/pulls/4"}},"in_reply_to_id":144688699},"pull_request":{"url":"https://api.github.com/repos/76room/apollo/pulls/4","id":146503040,"html_url":"https://github.com/76room/apollo/pull/4","diff_url":"https://github.com/76room/apollo/pull/4.diff","patch_url":"https://github.com/76room/apollo/pull/4.patch","issue_url":"https://api.github.com/repos/76room/apollo/issues/4","number":4,"state":"open","locked":false,"title":"Authorization with deezer","user":{"login":"uaArsen","id":18464641,"avatar_url":"https://avatars0.githubusercontent.com/u/18464641?v=4","gravatar_id":"","url":"https://api.github.com/users/uaArsen","html_url":"https://github.com/uaArsen","followers_url":"https://api.github.com/users/uaArsen/followers","following_url":"https://api.github.com/users/uaArsen/following{/other_user}","gists_url":"https://api.github.com/users/uaArsen/gists{/gist_id}","starred_url":"https://api.github.com/users/uaArsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uaArsen/subscriptions","organizations_url":"https://api.github.com/users/uaArsen/orgs","repos_url":"https://api.github.com/users/uaArsen/repos","events_url":"https://api.github.com/users/uaArsen/events{/privacy}","received_events_url":"https://api.github.com/users/uaArsen/received_events","type":"User","site_admin":false},"body":"Implement authorization with Deezer and refactor project structure \r\n\r\n1. Create controller, service, dto for authorization\r\n2. Implement authorization via deezer api, create nessary configuration, utils and dto.\r\n3. Add tests\r\n4. Refactor soundcloud package -> dto/soundcloud\r\n5. Refactor application.propertiese -> application.yml","created_at":"2017-10-13T16:43:26Z","updated_at":"2017-10-14T07:35:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecf6cd48d13b3aaabc11f785603a1f3b7e2a4a56","assignee":{"login":"uaArsen","id":18464641,"avatar_url":"https://avatars0.githubusercontent.com/u/18464641?v=4","gravatar_id":"","url":"https://api.github.com/users/uaArsen","html_url":"https://github.com/uaArsen","followers_url":"https://api.github.com/users/uaArsen/followers","following_url":"https://api.github.com/users/uaArsen/following{/other_user}","gists_url":"https://api.github.com/users/uaArsen/gists{/gist_id}","starred_url":"https://api.github.com/users/uaArsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uaArsen/subscriptions","organizations_url":"https://api.github.com/users/uaArsen/orgs","repos_url":"https://api.github.com/users/uaArsen/repos","events_url":"https://api.github.com/users/uaArsen/events{/privacy}","received_events_url":"https://api.github.com/users/uaArsen/received_events","type":"User","site_admin":false},"assignees":[{"login":"uaArsen","id":18464641,"avatar_url":"https://avatars0.githubusercontent.com/u/18464641?v=4","gravatar_id":"","url":"https://api.github.com/users/uaArsen","html_url":"https://github.com/uaArsen","followers_url":"https://api.github.com/users/uaArsen/followers","following_url":"https://api.github.com/users/uaArsen/following{/other_user}","gists_url":"https://api.github.com/users/uaArsen/gists{/gist_id}","starred_url":"https://api.github.com/users/uaArsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uaArsen/subscriptions","organizations_url":"https://api.github.com/users/uaArsen/orgs","repos_url":"https://api.github.com/users/uaArsen/repos","events_url":"https://api.github.com/users/uaArsen/events{/privacy}","received_events_url":"https://api.github.com/users/uaArsen/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"oleksandr-chzhen","id":29836069,"avatar_url":"https://avatars0.githubusercontent.com/u/29836069?v=4","gravatar_id":"","url":"https://api.github.com/users/oleksandr-chzhen","html_url":"https://github.com/oleksandr-chzhen","followers_url":"https://api.github.com/users/oleksandr-chzhen/followers","following_url":"https://api.github.com/users/oleksandr-chzhen/following{/other_user}","gists_url":"https://api.github.com/users/oleksandr-chzhen/gists{/gist_id}","starred_url":"https://api.github.com/users/oleksandr-chzhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleksandr-chzhen/subscriptions","organizations_url":"https://api.github.com/users/oleksandr-chzhen/orgs","repos_url":"https://api.github.com/users/oleksandr-chzhen/repos","events_url":"https://api.github.com/users/oleksandr-chzhen/events{/privacy}","received_events_url":"https://api.github.com/users/oleksandr-chzhen/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/76room/apollo/milestones/1","html_url":"https://github.com/76room/apollo/milestone/1","labels_url":"https://api.github.com/repos/76room/apollo/milestones/1/labels","id":2821505,"number":1,"title":"version 0.1","description":"Simple server and web-client application must be developed. Simple GUI.","creator":{"login":"AlexeyZatsepin","id":10632284,"avatar_url":"https://avatars0.githubusercontent.com/u/10632284?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexeyZatsepin","html_url":"https://github.com/AlexeyZatsepin","followers_url":"https://api.github.com/users/AlexeyZatsepin/followers","following_url":"https://api.github.com/users/AlexeyZatsepin/following{/other_user}","gists_url":"https://api.github.com/users/AlexeyZatsepin/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexeyZatsepin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexeyZatsepin/subscriptions","organizations_url":"https://api.github.com/users/AlexeyZatsepin/orgs","repos_url":"https://api.github.com/users/AlexeyZatsepin/repos","events_url":"https://api.github.com/users/AlexeyZatsepin/events{/privacy}","received_events_url":"https://api.github.com/users/AlexeyZatsepin/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"open","created_at":"2017-10-07T12:21:21Z","updated_at":"2017-10-13T16:43:26Z","due_on":"2017-11-30T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/76room/apollo/pulls/4/commits","review_comments_url":"https://api.github.com/repos/76room/apollo/pulls/4/comments","review_comment_url":"https://api.github.com/repos/76room/apollo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/76room/apollo/issues/4/comments","statuses_url":"https://api.github.com/repos/76room/apollo/statuses/955cd331966550a88c316526b4d715455f6c9361","head":{"label":"76room:authorization-with-deezer","ref":"authorization-with-deezer","sha":"955cd331966550a88c316526b4d715455f6c9361","user":{"login":"76room","id":32523084,"avatar_url":"https://avatars1.githubusercontent.com/u/32523084?v=4","gravatar_id":"","url":"https://api.github.com/users/76room","html_url":"https://github.com/76room","followers_url":"https://api.github.com/users/76room/followers","following_url":"https://api.github.com/users/76room/following{/other_user}","gists_url":"https://api.github.com/users/76room/gists{/gist_id}","starred_url":"https://api.github.com/users/76room/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/76room/subscriptions","organizations_url":"https://api.github.com/users/76room/orgs","repos_url":"https://api.github.com/users/76room/repos","events_url":"https://api.github.com/users/76room/events{/privacy}","received_events_url":"https://api.github.com/users/76room/received_events","type":"Organization","site_admin":false},"repo":{"id":105800484,"name":"apollo","full_name":"76room/apollo","owner":{"login":"76room","id":32523084,"avatar_url":"https://avatars1.githubusercontent.com/u/32523084?v=4","gravatar_id":"","url":"https://api.github.com/users/76room","html_url":"https://github.com/76room","followers_url":"https://api.github.com/users/76room/followers","following_url":"https://api.github.com/users/76room/following{/other_user}","gists_url":"https://api.github.com/users/76room/gists{/gist_id}","starred_url":"https://api.github.com/users/76room/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/76room/subscriptions","organizations_url":"https://api.github.com/users/76room/orgs","repos_url":"https://api.github.com/users/76room/repos","events_url":"https://api.github.com/users/76room/events{/privacy}","received_events_url":"https://api.github.com/users/76room/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/76room/apollo","description":null,"fork":false,"url":"https://api.github.com/repos/76room/apollo","forks_url":"https://api.github.com/repos/76room/apollo/forks","keys_url":"https://api.github.com/repos/76room/apollo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/76room/apollo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/76room/apollo/teams","hooks_url":"https://api.github.com/repos/76room/apollo/hooks","issue_events_url":"https://api.github.com/repos/76room/apollo/issues/events{/number}","events_url":"https://api.github.com/repos/76room/apollo/events","assignees_url":"https://api.github.com/repos/76room/apollo/assignees{/user}","branches_url":"https://api.github.com/repos/76room/apollo/branches{/branch}","tags_url":"https://api.github.com/repos/76room/apollo/tags","blobs_url":"https://api.github.com/repos/76room/apollo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/76room/apollo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/76room/apollo/git/refs{/sha}","trees_url":"https://api.github.com/repos/76room/apollo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/76room/apollo/statuses/{sha}","languages_url":"https://api.github.com/repos/76room/apollo/languages","stargazers_url":"https://api.github.com/repos/76room/apollo/stargazers","contributors_url":"https://api.github.com/repos/76room/apollo/contributors","subscribers_url":"https://api.github.com/repos/76room/apollo/subscribers","subscription_url":"https://api.github.com/repos/76room/apollo/subscription","commits_url":"https://api.github.com/repos/76room/apollo/commits{/sha}","git_commits_url":"https://api.github.com/repos/76room/apollo/git/commits{/sha}","comments_url":"https://api.github.com/repos/76room/apollo/comments{/number}","issue_comment_url":"https://api.github.com/repos/76room/apollo/issues/comments{/number}","contents_url":"https://api.github.com/repos/76room/apollo/contents/{+path}","compare_url":"https://api.github.com/repos/76room/apollo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/76room/apollo/merges","archive_url":"https://api.github.com/repos/76room/apollo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/76room/apollo/downloads","issues_url":"https://api.github.com/repos/76room/apollo/issues{/number}","pulls_url":"https://api.github.com/repos/76room/apollo/pulls{/number}","milestones_url":"https://api.github.com/repos/76room/apollo/milestones{/number}","notifications_url":"https://api.github.com/repos/76room/apollo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/76room/apollo/labels{/name}","releases_url":"https://api.github.com/repos/76room/apollo/releases{/id}","deployments_url":"https://api.github.com/repos/76room/apollo/deployments","created_at":"2017-10-04T18:00:45Z","updated_at":"2017-10-07T18:44:54Z","pushed_at":"2017-10-13T19:20:47Z","git_url":"git://github.com/76room/apollo.git","ssh_url":"git@github.com:76room/apollo.git","clone_url":"https://github.com/76room/apollo.git","svn_url":"https://github.com/76room/apollo","homepage":null,"size":73,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"base":{"label":"76room:dev","ref":"dev","sha":"fe07cb634d8207115d066e0fb2c0e96b664350d2","user":{"login":"76room","id":32523084,"avatar_url":"https://avatars1.githubusercontent.com/u/32523084?v=4","gravatar_id":"","url":"https://api.github.com/users/76room","html_url":"https://github.com/76room","followers_url":"https://api.github.com/users/76room/followers","following_url":"https://api.github.com/users/76room/following{/other_user}","gists_url":"https://api.github.com/users/76room/gists{/gist_id}","starred_url":"https://api.github.com/users/76room/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/76room/subscriptions","organizations_url":"https://api.github.com/users/76room/orgs","repos_url":"https://api.github.com/users/76room/repos","events_url":"https://api.github.com/users/76room/events{/privacy}","received_events_url":"https://api.github.com/users/76room/received_events","type":"Organization","site_admin":false},"repo":{"id":105800484,"name":"apollo","full_name":"76room/apollo","owner":{"login":"76room","id":32523084,"avatar_url":"https://avatars1.githubusercontent.com/u/32523084?v=4","gravatar_id":"","url":"https://api.github.com/users/76room","html_url":"https://github.com/76room","followers_url":"https://api.github.com/users/76room/followers","following_url":"https://api.github.com/users/76room/following{/other_user}","gists_url":"https://api.github.com/users/76room/gists{/gist_id}","starred_url":"https://api.github.com/users/76room/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/76room/subscriptions","organizations_url":"https://api.github.com/users/76room/orgs","repos_url":"https://api.github.com/users/76room/repos","events_url":"https://api.github.com/users/76room/events{/privacy}","received_events_url":"https://api.github.com/users/76room/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/76room/apollo","description":null,"fork":false,"url":"https://api.github.com/repos/76room/apollo","forks_url":"https://api.github.com/repos/76room/apollo/forks","keys_url":"https://api.github.com/repos/76room/apollo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/76room/apollo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/76room/apollo/teams","hooks_url":"https://api.github.com/repos/76room/apollo/hooks","issue_events_url":"https://api.github.com/repos/76room/apollo/issues/events{/number}","events_url":"https://api.github.com/repos/76room/apollo/events","assignees_url":"https://api.github.com/repos/76room/apollo/assignees{/user}","branches_url":"https://api.github.com/repos/76room/apollo/branches{/branch}","tags_url":"https://api.github.com/repos/76room/apollo/tags","blobs_url":"https://api.github.com/repos/76room/apollo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/76room/apollo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/76room/apollo/git/refs{/sha}","trees_url":"https://api.github.com/repos/76room/apollo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/76room/apollo/statuses/{sha}","languages_url":"https://api.github.com/repos/76room/apollo/languages","stargazers_url":"https://api.github.com/repos/76room/apollo/stargazers","contributors_url":"https://api.github.com/repos/76room/apollo/contributors","subscribers_url":"https://api.github.com/repos/76room/apollo/subscribers","subscription_url":"https://api.github.com/repos/76room/apollo/subscription","commits_url":"https://api.github.com/repos/76room/apollo/commits{/sha}","git_commits_url":"https://api.github.com/repos/76room/apollo/git/commits{/sha}","comments_url":"https://api.github.com/repos/76room/apollo/comments{/number}","issue_comment_url":"https://api.github.com/repos/76room/apollo/issues/comments{/number}","contents_url":"https://api.github.com/repos/76room/apollo/contents/{+path}","compare_url":"https://api.github.com/repos/76room/apollo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/76room/apollo/merges","archive_url":"https://api.github.com/repos/76room/apollo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/76room/apollo/downloads","issues_url":"https://api.github.com/repos/76room/apollo/issues{/number}","pulls_url":"https://api.github.com/repos/76room/apollo/pulls{/number}","milestones_url":"https://api.github.com/repos/76room/apollo/milestones{/number}","notifications_url":"https://api.github.com/repos/76room/apollo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/76room/apollo/labels{/name}","releases_url":"https://api.github.com/repos/76room/apollo/releases{/id}","deployments_url":"https://api.github.com/repos/76room/apollo/deployments","created_at":"2017-10-04T18:00:45Z","updated_at":"2017-10-07T18:44:54Z","pushed_at":"2017-10-13T19:20:47Z","git_url":"git://github.com/76room/apollo.git","ssh_url":"git@github.com:76room/apollo.git","clone_url":"https://github.com/76room/apollo.git","svn_url":"https://github.com/76room/apollo","homepage":null,"size":73,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/76room/apollo/pulls/4"},"html":{"href":"https://github.com/76room/apollo/pull/4"},"issue":{"href":"https://api.github.com/repos/76room/apollo/issues/4"},"comments":{"href":"https://api.github.com/repos/76room/apollo/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/76room/apollo/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/76room/apollo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/76room/apollo/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/76room/apollo/statuses/955cd331966550a88c316526b4d715455f6c9361"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"uaArsen"}}