{"action":"created","comment":{"url":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/comments/144619533","pull_request_review_id":69304864,"id":144619533,"diff_hunk":"@@ -166,7 +166,11 @@ var util = require('./util');\n       var authParamsUsed = false;\n       if (params) {\n         if (params.error) {\n-          throw \"Authorization server errored: \" + params.error;\n+          if (params.error === 'access_denied') {\n+            throw new Authorize.Unauthorized('User denied access.');","path":"src/authorize.js","position":6,"original_position":6,"commit_id":"8f96b0fdf8b5caaff6c254f46a738ee15ea2ac41","original_commit_id":"901d13e9455e43848234ec82e8ee6378b83a6bf7","user":{"login":"skddc","id":842,"avatar_url":"https://avatars1.githubusercontent.com/u/842?v=4","gravatar_id":"","url":"https://api.github.com/users/skddc","html_url":"https://github.com/skddc","followers_url":"https://api.github.com/users/skddc/followers","following_url":"https://api.github.com/users/skddc/following{/other_user}","gists_url":"https://api.github.com/users/skddc/gists{/gist_id}","starred_url":"https://api.github.com/users/skddc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skddc/subscriptions","organizations_url":"https://api.github.com/users/skddc/orgs","repos_url":"https://api.github.com/users/skddc/repos","events_url":"https://api.github.com/users/skddc/events{/privacy}","received_events_url":"https://api.github.com/users/skddc/received_events","type":"User","site_admin":false},"body":"How about \"Authorization failed: access denied\".","created_at":"2017-10-13T17:57:22Z","updated_at":"2017-10-13T17:57:23Z","html_url":"https://github.com/remotestorage/remotestorage.js/pull/1018#discussion_r144619533","pull_request_url":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/1018","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/comments/144619533"},"html":{"href":"https://github.com/remotestorage/remotestorage.js/pull/1018#discussion_r144619533"},"pull_request":{"href":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/1018"}}},"pull_request":{"url":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/1018","id":146444781,"html_url":"https://github.com/remotestorage/remotestorage.js/pull/1018","diff_url":"https://github.com/remotestorage/remotestorage.js/pull/1018.diff","patch_url":"https://github.com/remotestorage/remotestorage.js/pull/1018.patch","issue_url":"https://api.github.com/repos/remotestorage/remotestorage.js/issues/1018","number":1018,"state":"open","locked":false,"title":"[WIP] Improve/fix authorization error handling","user":{"login":"galfert","id":843,"avatar_url":"https://avatars1.githubusercontent.com/u/843?v=4","gravatar_id":"","url":"https://api.github.com/users/galfert","html_url":"https://github.com/galfert","followers_url":"https://api.github.com/users/galfert/followers","following_url":"https://api.github.com/users/galfert/following{/other_user}","gists_url":"https://api.github.com/users/galfert/gists{/gist_id}","starred_url":"https://api.github.com/users/galfert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galfert/subscriptions","organizations_url":"https://api.github.com/users/galfert/orgs","repos_url":"https://api.github.com/users/galfert/repos","events_url":"https://api.github.com/users/galfert/events{/privacy}","received_events_url":"https://api.github.com/users/galfert/received_events","type":"User","site_admin":false},"body":"This is still WIP, because I'm still working on the Widget-side of things and I don't know yet if there is anything else missing. Also, there are no tests yet.","created_at":"2017-10-13T12:29:19Z","updated_at":"2017-10-13T17:57:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d81ba49c55b496a7e1bfe8f4f84a5c4630c73088","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/1018/commits","review_comments_url":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/1018/comments","review_comment_url":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/remotestorage/remotestorage.js/issues/1018/comments","statuses_url":"https://api.github.com/repos/remotestorage/remotestorage.js/statuses/8f96b0fdf8b5caaff6c254f46a738ee15ea2ac41","head":{"label":"remotestorage:bugfix/authorization_errors","ref":"bugfix/authorization_errors","sha":"8f96b0fdf8b5caaff6c254f46a738ee15ea2ac41","user":{"login":"remotestorage","id":2323242,"avatar_url":"https://avatars3.githubusercontent.com/u/2323242?v=4","gravatar_id":"","url":"https://api.github.com/users/remotestorage","html_url":"https://github.com/remotestorage","followers_url":"https://api.github.com/users/remotestorage/followers","following_url":"https://api.github.com/users/remotestorage/following{/other_user}","gists_url":"https://api.github.com/users/remotestorage/gists{/gist_id}","starred_url":"https://api.github.com/users/remotestorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remotestorage/subscriptions","organizations_url":"https://api.github.com/users/remotestorage/orgs","repos_url":"https://api.github.com/users/remotestorage/repos","events_url":"https://api.github.com/users/remotestorage/events{/privacy}","received_events_url":"https://api.github.com/users/remotestorage/received_events","type":"Organization","site_admin":false},"repo":{"id":1052694,"name":"remotestorage.js","full_name":"remotestorage/remotestorage.js","owner":{"login":"remotestorage","id":2323242,"avatar_url":"https://avatars3.githubusercontent.com/u/2323242?v=4","gravatar_id":"","url":"https://api.github.com/users/remotestorage","html_url":"https://github.com/remotestorage","followers_url":"https://api.github.com/users/remotestorage/followers","following_url":"https://api.github.com/users/remotestorage/following{/other_user}","gists_url":"https://api.github.com/users/remotestorage/gists{/gist_id}","starred_url":"https://api.github.com/users/remotestorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remotestorage/subscriptions","organizations_url":"https://api.github.com/users/remotestorage/orgs","repos_url":"https://api.github.com/users/remotestorage/repos","events_url":"https://api.github.com/users/remotestorage/events{/privacy}","received_events_url":"https://api.github.com/users/remotestorage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/remotestorage/remotestorage.js","description":"⬡ JavaScript client library for integrating remoteStorage in apps","fork":false,"url":"https://api.github.com/repos/remotestorage/remotestorage.js","forks_url":"https://api.github.com/repos/remotestorage/remotestorage.js/forks","keys_url":"https://api.github.com/repos/remotestorage/remotestorage.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remotestorage/remotestorage.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remotestorage/remotestorage.js/teams","hooks_url":"https://api.github.com/repos/remotestorage/remotestorage.js/hooks","issue_events_url":"https://api.github.com/repos/remotestorage/remotestorage.js/issues/events{/number}","events_url":"https://api.github.com/repos/remotestorage/remotestorage.js/events","assignees_url":"https://api.github.com/repos/remotestorage/remotestorage.js/assignees{/user}","branches_url":"https://api.github.com/repos/remotestorage/remotestorage.js/branches{/branch}","tags_url":"https://api.github.com/repos/remotestorage/remotestorage.js/tags","blobs_url":"https://api.github.com/repos/remotestorage/remotestorage.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remotestorage/remotestorage.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remotestorage/remotestorage.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/remotestorage/remotestorage.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remotestorage/remotestorage.js/statuses/{sha}","languages_url":"https://api.github.com/repos/remotestorage/remotestorage.js/languages","stargazers_url":"https://api.github.com/repos/remotestorage/remotestorage.js/stargazers","contributors_url":"https://api.github.com/repos/remotestorage/remotestorage.js/contributors","subscribers_url":"https://api.github.com/repos/remotestorage/remotestorage.js/subscribers","subscription_url":"https://api.github.com/repos/remotestorage/remotestorage.js/subscription","commits_url":"https://api.github.com/repos/remotestorage/remotestorage.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/remotestorage/remotestorage.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/remotestorage/remotestorage.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/remotestorage/remotestorage.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/remotestorage/remotestorage.js/contents/{+path}","compare_url":"https://api.github.com/repos/remotestorage/remotestorage.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remotestorage/remotestorage.js/merges","archive_url":"https://api.github.com/repos/remotestorage/remotestorage.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remotestorage/remotestorage.js/downloads","issues_url":"https://api.github.com/repos/remotestorage/remotestorage.js/issues{/number}","pulls_url":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls{/number}","milestones_url":"https://api.github.com/repos/remotestorage/remotestorage.js/milestones{/number}","notifications_url":"https://api.github.com/repos/remotestorage/remotestorage.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remotestorage/remotestorage.js/labels{/name}","releases_url":"https://api.github.com/repos/remotestorage/remotestorage.js/releases{/id}","deployments_url":"https://api.github.com/repos/remotestorage/remotestorage.js/deployments","created_at":"2010-11-04T23:09:23Z","updated_at":"2017-10-07T14:16:03Z","pushed_at":"2017-10-13T17:17:02Z","git_url":"git://github.com/remotestorage/remotestorage.js.git","ssh_url":"git@github.com:remotestorage/remotestorage.js.git","clone_url":"https://github.com/remotestorage/remotestorage.js.git","svn_url":"https://github.com/remotestorage/remotestorage.js","homepage":"https://remotestorage.io","size":19845,"stargazers_count":881,"watchers_count":881,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":83,"mirror_url":null,"open_issues_count":80,"forks":83,"open_issues":80,"watchers":881,"default_branch":"stable"}},"base":{"label":"remotestorage:master","ref":"master","sha":"28e3a70878dcc523b34b39bb307eb5d45d12ae07","user":{"login":"remotestorage","id":2323242,"avatar_url":"https://avatars3.githubusercontent.com/u/2323242?v=4","gravatar_id":"","url":"https://api.github.com/users/remotestorage","html_url":"https://github.com/remotestorage","followers_url":"https://api.github.com/users/remotestorage/followers","following_url":"https://api.github.com/users/remotestorage/following{/other_user}","gists_url":"https://api.github.com/users/remotestorage/gists{/gist_id}","starred_url":"https://api.github.com/users/remotestorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remotestorage/subscriptions","organizations_url":"https://api.github.com/users/remotestorage/orgs","repos_url":"https://api.github.com/users/remotestorage/repos","events_url":"https://api.github.com/users/remotestorage/events{/privacy}","received_events_url":"https://api.github.com/users/remotestorage/received_events","type":"Organization","site_admin":false},"repo":{"id":1052694,"name":"remotestorage.js","full_name":"remotestorage/remotestorage.js","owner":{"login":"remotestorage","id":2323242,"avatar_url":"https://avatars3.githubusercontent.com/u/2323242?v=4","gravatar_id":"","url":"https://api.github.com/users/remotestorage","html_url":"https://github.com/remotestorage","followers_url":"https://api.github.com/users/remotestorage/followers","following_url":"https://api.github.com/users/remotestorage/following{/other_user}","gists_url":"https://api.github.com/users/remotestorage/gists{/gist_id}","starred_url":"https://api.github.com/users/remotestorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remotestorage/subscriptions","organizations_url":"https://api.github.com/users/remotestorage/orgs","repos_url":"https://api.github.com/users/remotestorage/repos","events_url":"https://api.github.com/users/remotestorage/events{/privacy}","received_events_url":"https://api.github.com/users/remotestorage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/remotestorage/remotestorage.js","description":"⬡ JavaScript client library for integrating remoteStorage in apps","fork":false,"url":"https://api.github.com/repos/remotestorage/remotestorage.js","forks_url":"https://api.github.com/repos/remotestorage/remotestorage.js/forks","keys_url":"https://api.github.com/repos/remotestorage/remotestorage.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remotestorage/remotestorage.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remotestorage/remotestorage.js/teams","hooks_url":"https://api.github.com/repos/remotestorage/remotestorage.js/hooks","issue_events_url":"https://api.github.com/repos/remotestorage/remotestorage.js/issues/events{/number}","events_url":"https://api.github.com/repos/remotestorage/remotestorage.js/events","assignees_url":"https://api.github.com/repos/remotestorage/remotestorage.js/assignees{/user}","branches_url":"https://api.github.com/repos/remotestorage/remotestorage.js/branches{/branch}","tags_url":"https://api.github.com/repos/remotestorage/remotestorage.js/tags","blobs_url":"https://api.github.com/repos/remotestorage/remotestorage.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remotestorage/remotestorage.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remotestorage/remotestorage.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/remotestorage/remotestorage.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remotestorage/remotestorage.js/statuses/{sha}","languages_url":"https://api.github.com/repos/remotestorage/remotestorage.js/languages","stargazers_url":"https://api.github.com/repos/remotestorage/remotestorage.js/stargazers","contributors_url":"https://api.github.com/repos/remotestorage/remotestorage.js/contributors","subscribers_url":"https://api.github.com/repos/remotestorage/remotestorage.js/subscribers","subscription_url":"https://api.github.com/repos/remotestorage/remotestorage.js/subscription","commits_url":"https://api.github.com/repos/remotestorage/remotestorage.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/remotestorage/remotestorage.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/remotestorage/remotestorage.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/remotestorage/remotestorage.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/remotestorage/remotestorage.js/contents/{+path}","compare_url":"https://api.github.com/repos/remotestorage/remotestorage.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remotestorage/remotestorage.js/merges","archive_url":"https://api.github.com/repos/remotestorage/remotestorage.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remotestorage/remotestorage.js/downloads","issues_url":"https://api.github.com/repos/remotestorage/remotestorage.js/issues{/number}","pulls_url":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls{/number}","milestones_url":"https://api.github.com/repos/remotestorage/remotestorage.js/milestones{/number}","notifications_url":"https://api.github.com/repos/remotestorage/remotestorage.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remotestorage/remotestorage.js/labels{/name}","releases_url":"https://api.github.com/repos/remotestorage/remotestorage.js/releases{/id}","deployments_url":"https://api.github.com/repos/remotestorage/remotestorage.js/deployments","created_at":"2010-11-04T23:09:23Z","updated_at":"2017-10-07T14:16:03Z","pushed_at":"2017-10-13T17:17:02Z","git_url":"git://github.com/remotestorage/remotestorage.js.git","ssh_url":"git@github.com:remotestorage/remotestorage.js.git","clone_url":"https://github.com/remotestorage/remotestorage.js.git","svn_url":"https://github.com/remotestorage/remotestorage.js","homepage":"https://remotestorage.io","size":19845,"stargazers_count":881,"watchers_count":881,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":83,"mirror_url":null,"open_issues_count":80,"forks":83,"open_issues":80,"watchers":881,"default_branch":"stable"}},"_links":{"self":{"href":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/1018"},"html":{"href":"https://github.com/remotestorage/remotestorage.js/pull/1018"},"issue":{"href":"https://api.github.com/repos/remotestorage/remotestorage.js/issues/1018"},"comments":{"href":"https://api.github.com/repos/remotestorage/remotestorage.js/issues/1018/comments"},"review_comments":{"href":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/1018/comments"},"review_comment":{"href":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/remotestorage/remotestorage.js/pulls/1018/commits"},"statuses":{"href":"https://api.github.com/repos/remotestorage/remotestorage.js/statuses/8f96b0fdf8b5caaff6c254f46a738ee15ea2ac41"}},"author_association":"OWNER"}}
{"actor":{"display_login":"skddc"}}