{"action":"created","comment":{"url":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/comments/53352346","id":53352346,"diff_hunk":"@@ -1939,14 +1944,16 @@\n              * @param {object} params request builded params\n              */\n             _addAuthorization: function(params) {\n-                // @todo: support to oauth token and custom handlers\n-                var accessToken = this.driver.config.get(corbel.Iam.IAM_TOKEN, {}).accessToken;\n+                var accessToken = params.accessToken ? params.accessToken : this.driver.config\n+                    .get(corbel.Iam.IAM_TOKEN, {}).accessToken;\n \n-                // Use access access token if exists\n-                if (accessToken) {\n+                if (accessToken && !params.headers.Authorization) {","path":"dist/corbel.js","position":32,"original_position":32,"commit_id":"f9b0825e170ee68c004059c515eb15187b7ad083","original_commit_id":"f9b0825e170ee68c004059c515eb15187b7ad083","user":{"login":"rafinskipg","id":1152768,"avatar_url":"https://avatars.githubusercontent.com/u/1152768?v=3","gravatar_id":"","url":"https://api.github.com/users/rafinskipg","html_url":"https://github.com/rafinskipg","followers_url":"https://api.github.com/users/rafinskipg/followers","following_url":"https://api.github.com/users/rafinskipg/following{/other_user}","gists_url":"https://api.github.com/users/rafinskipg/gists{/gist_id}","starred_url":"https://api.github.com/users/rafinskipg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafinskipg/subscriptions","organizations_url":"https://api.github.com/users/rafinskipg/orgs","repos_url":"https://api.github.com/users/rafinskipg/repos","events_url":"https://api.github.com/users/rafinskipg/events{/privacy}","received_events_url":"https://api.github.com/users/rafinskipg/received_events","type":"User","site_admin":false},"body":"Recuerdame que miremos que si hay un retry se actualice el token de headers correctamente (en casos en los que no se use params.accessToken)","created_at":"2016-02-18T17:51:09Z","updated_at":"2016-02-18T17:51:09Z","html_url":"https://github.com/corbel-platform/corbel-js/pull/73#discussion_r53352346","pull_request_url":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/comments/53352346"},"html":{"href":"https://github.com/corbel-platform/corbel-js/pull/73#discussion_r53352346"},"pull_request":{"href":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/73","id":58763892,"html_url":"https://github.com/corbel-platform/corbel-js/pull/73","diff_url":"https://github.com/corbel-platform/corbel-js/pull/73.diff","patch_url":"https://github.com/corbel-platform/corbel-js/pull/73.patch","issue_url":"https://api.github.com/repos/corbel-platform/corbel-js/issues/73","number":73,"state":"open","locked":false,"title":"[SILKROAD-2250] minor changes to migrate oauth tests from silkroad-test to corbel-test","user":{"login":"RomRuben","id":3375605,"avatar_url":"https://avatars.githubusercontent.com/u/3375605?v=3","gravatar_id":"","url":"https://api.github.com/users/RomRuben","html_url":"https://github.com/RomRuben","followers_url":"https://api.github.com/users/RomRuben/followers","following_url":"https://api.github.com/users/RomRuben/following{/other_user}","gists_url":"https://api.github.com/users/RomRuben/gists{/gist_id}","starred_url":"https://api.github.com/users/RomRuben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomRuben/subscriptions","organizations_url":"https://api.github.com/users/RomRuben/orgs","repos_url":"https://api.github.com/users/RomRuben/repos","events_url":"https://api.github.com/users/RomRuben/events{/privacy}","received_events_url":"https://api.github.com/users/RomRuben/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-09T15:38:01Z","updated_at":"2016-02-18T17:51:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0e53c571d839b34e8ce1a62dbf63f7655b1ca42","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/73/commits","review_comments_url":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/73/comments","review_comment_url":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/corbel-platform/corbel-js/issues/73/comments","statuses_url":"https://api.github.com/repos/corbel-platform/corbel-js/statuses/f9b0825e170ee68c004059c515eb15187b7ad083","head":{"label":"RomRuben:master","ref":"master","sha":"f9b0825e170ee68c004059c515eb15187b7ad083","user":{"login":"RomRuben","id":3375605,"avatar_url":"https://avatars.githubusercontent.com/u/3375605?v=3","gravatar_id":"","url":"https://api.github.com/users/RomRuben","html_url":"https://github.com/RomRuben","followers_url":"https://api.github.com/users/RomRuben/followers","following_url":"https://api.github.com/users/RomRuben/following{/other_user}","gists_url":"https://api.github.com/users/RomRuben/gists{/gist_id}","starred_url":"https://api.github.com/users/RomRuben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomRuben/subscriptions","organizations_url":"https://api.github.com/users/RomRuben/orgs","repos_url":"https://api.github.com/users/RomRuben/repos","events_url":"https://api.github.com/users/RomRuben/events{/privacy}","received_events_url":"https://api.github.com/users/RomRuben/received_events","type":"User","site_admin":false},"repo":{"id":51363313,"name":"corbel-js","full_name":"RomRuben/corbel-js","owner":{"login":"RomRuben","id":3375605,"avatar_url":"https://avatars.githubusercontent.com/u/3375605?v=3","gravatar_id":"","url":"https://api.github.com/users/RomRuben","html_url":"https://github.com/RomRuben","followers_url":"https://api.github.com/users/RomRuben/followers","following_url":"https://api.github.com/users/RomRuben/following{/other_user}","gists_url":"https://api.github.com/users/RomRuben/gists{/gist_id}","starred_url":"https://api.github.com/users/RomRuben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomRuben/subscriptions","organizations_url":"https://api.github.com/users/RomRuben/orgs","repos_url":"https://api.github.com/users/RomRuben/repos","events_url":"https://api.github.com/users/RomRuben/events{/privacy}","received_events_url":"https://api.github.com/users/RomRuben/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RomRuben/corbel-js","description":"A SDK for corbel compatible with browsers and node.","fork":true,"url":"https://api.github.com/repos/RomRuben/corbel-js","forks_url":"https://api.github.com/repos/RomRuben/corbel-js/forks","keys_url":"https://api.github.com/repos/RomRuben/corbel-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RomRuben/corbel-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RomRuben/corbel-js/teams","hooks_url":"https://api.github.com/repos/RomRuben/corbel-js/hooks","issue_events_url":"https://api.github.com/repos/RomRuben/corbel-js/issues/events{/number}","events_url":"https://api.github.com/repos/RomRuben/corbel-js/events","assignees_url":"https://api.github.com/repos/RomRuben/corbel-js/assignees{/user}","branches_url":"https://api.github.com/repos/RomRuben/corbel-js/branches{/branch}","tags_url":"https://api.github.com/repos/RomRuben/corbel-js/tags","blobs_url":"https://api.github.com/repos/RomRuben/corbel-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RomRuben/corbel-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RomRuben/corbel-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/RomRuben/corbel-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RomRuben/corbel-js/statuses/{sha}","languages_url":"https://api.github.com/repos/RomRuben/corbel-js/languages","stargazers_url":"https://api.github.com/repos/RomRuben/corbel-js/stargazers","contributors_url":"https://api.github.com/repos/RomRuben/corbel-js/contributors","subscribers_url":"https://api.github.com/repos/RomRuben/corbel-js/subscribers","subscription_url":"https://api.github.com/repos/RomRuben/corbel-js/subscription","commits_url":"https://api.github.com/repos/RomRuben/corbel-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/RomRuben/corbel-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/RomRuben/corbel-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/RomRuben/corbel-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/RomRuben/corbel-js/contents/{+path}","compare_url":"https://api.github.com/repos/RomRuben/corbel-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RomRuben/corbel-js/merges","archive_url":"https://api.github.com/repos/RomRuben/corbel-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RomRuben/corbel-js/downloads","issues_url":"https://api.github.com/repos/RomRuben/corbel-js/issues{/number}","pulls_url":"https://api.github.com/repos/RomRuben/corbel-js/pulls{/number}","milestones_url":"https://api.github.com/repos/RomRuben/corbel-js/milestones{/number}","notifications_url":"https://api.github.com/repos/RomRuben/corbel-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RomRuben/corbel-js/labels{/name}","releases_url":"https://api.github.com/repos/RomRuben/corbel-js/releases{/id}","deployments_url":"https://api.github.com/repos/RomRuben/corbel-js/deployments","created_at":"2016-02-09T11:40:14Z","updated_at":"2016-02-09T11:40:15Z","pushed_at":"2016-02-18T16:12:08Z","git_url":"git://github.com/RomRuben/corbel-js.git","ssh_url":"git@github.com:RomRuben/corbel-js.git","clone_url":"https://github.com/RomRuben/corbel-js.git","svn_url":"https://github.com/RomRuben/corbel-js","homepage":"","size":1525,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"corbel-platform:master","ref":"master","sha":"d2c1a5cd1dfba7f26a00c0947f15ff69d9a2dc7c","user":{"login":"corbel-platform","id":12596728,"avatar_url":"https://avatars.githubusercontent.com/u/12596728?v=3","gravatar_id":"","url":"https://api.github.com/users/corbel-platform","html_url":"https://github.com/corbel-platform","followers_url":"https://api.github.com/users/corbel-platform/followers","following_url":"https://api.github.com/users/corbel-platform/following{/other_user}","gists_url":"https://api.github.com/users/corbel-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/corbel-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corbel-platform/subscriptions","organizations_url":"https://api.github.com/users/corbel-platform/orgs","repos_url":"https://api.github.com/users/corbel-platform/repos","events_url":"https://api.github.com/users/corbel-platform/events{/privacy}","received_events_url":"https://api.github.com/users/corbel-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":25632224,"name":"corbel-js","full_name":"corbel-platform/corbel-js","owner":{"login":"corbel-platform","id":12596728,"avatar_url":"https://avatars.githubusercontent.com/u/12596728?v=3","gravatar_id":"","url":"https://api.github.com/users/corbel-platform","html_url":"https://github.com/corbel-platform","followers_url":"https://api.github.com/users/corbel-platform/followers","following_url":"https://api.github.com/users/corbel-platform/following{/other_user}","gists_url":"https://api.github.com/users/corbel-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/corbel-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corbel-platform/subscriptions","organizations_url":"https://api.github.com/users/corbel-platform/orgs","repos_url":"https://api.github.com/users/corbel-platform/repos","events_url":"https://api.github.com/users/corbel-platform/events{/privacy}","received_events_url":"https://api.github.com/users/corbel-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/corbel-platform/corbel-js","description":"A SDK for corbel compatible with browsers and node.","fork":false,"url":"https://api.github.com/repos/corbel-platform/corbel-js","forks_url":"https://api.github.com/repos/corbel-platform/corbel-js/forks","keys_url":"https://api.github.com/repos/corbel-platform/corbel-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/corbel-platform/corbel-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/corbel-platform/corbel-js/teams","hooks_url":"https://api.github.com/repos/corbel-platform/corbel-js/hooks","issue_events_url":"https://api.github.com/repos/corbel-platform/corbel-js/issues/events{/number}","events_url":"https://api.github.com/repos/corbel-platform/corbel-js/events","assignees_url":"https://api.github.com/repos/corbel-platform/corbel-js/assignees{/user}","branches_url":"https://api.github.com/repos/corbel-platform/corbel-js/branches{/branch}","tags_url":"https://api.github.com/repos/corbel-platform/corbel-js/tags","blobs_url":"https://api.github.com/repos/corbel-platform/corbel-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/corbel-platform/corbel-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/corbel-platform/corbel-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/corbel-platform/corbel-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/corbel-platform/corbel-js/statuses/{sha}","languages_url":"https://api.github.com/repos/corbel-platform/corbel-js/languages","stargazers_url":"https://api.github.com/repos/corbel-platform/corbel-js/stargazers","contributors_url":"https://api.github.com/repos/corbel-platform/corbel-js/contributors","subscribers_url":"https://api.github.com/repos/corbel-platform/corbel-js/subscribers","subscription_url":"https://api.github.com/repos/corbel-platform/corbel-js/subscription","commits_url":"https://api.github.com/repos/corbel-platform/corbel-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/corbel-platform/corbel-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/corbel-platform/corbel-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/corbel-platform/corbel-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/corbel-platform/corbel-js/contents/{+path}","compare_url":"https://api.github.com/repos/corbel-platform/corbel-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/corbel-platform/corbel-js/merges","archive_url":"https://api.github.com/repos/corbel-platform/corbel-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/corbel-platform/corbel-js/downloads","issues_url":"https://api.github.com/repos/corbel-platform/corbel-js/issues{/number}","pulls_url":"https://api.github.com/repos/corbel-platform/corbel-js/pulls{/number}","milestones_url":"https://api.github.com/repos/corbel-platform/corbel-js/milestones{/number}","notifications_url":"https://api.github.com/repos/corbel-platform/corbel-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/corbel-platform/corbel-js/labels{/name}","releases_url":"https://api.github.com/repos/corbel-platform/corbel-js/releases{/id}","deployments_url":"https://api.github.com/repos/corbel-platform/corbel-js/deployments","created_at":"2014-10-23T10:47:27Z","updated_at":"2016-01-18T07:55:30Z","pushed_at":"2016-02-18T16:12:08Z","git_url":"git://github.com/corbel-platform/corbel-js.git","ssh_url":"git@github.com:corbel-platform/corbel-js.git","clone_url":"https://github.com/corbel-platform/corbel-js.git","svn_url":"https://github.com/corbel-platform/corbel-js","homepage":"","size":1889,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":13,"forks":13,"open_issues":13,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/73"},"html":{"href":"https://github.com/corbel-platform/corbel-js/pull/73"},"issue":{"href":"https://api.github.com/repos/corbel-platform/corbel-js/issues/73"},"comments":{"href":"https://api.github.com/repos/corbel-platform/corbel-js/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/corbel-platform/corbel-js/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/corbel-platform/corbel-js/statuses/f9b0825e170ee68c004059c515eb15187b7ad083"}}}}