{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/whispir/whispir-java-sdk/pulls/2","id":66976899,"html_url":"https://github.com/whispir/whispir-java-sdk/pull/2","diff_url":"https://github.com/whispir/whispir-java-sdk/pull/2.diff","patch_url":"https://github.com/whispir/whispir-java-sdk/pull/2.patch","issue_url":"https://api.github.com/repos/whispir/whispir-java-sdk/issues/2","number":2,"state":"open","locked":false,"title":"Adding Preemptive authentication","user":{"login":"sanjeevmandalapu","id":4832588,"avatar_url":"https://avatars.githubusercontent.com/u/4832588?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjeevmandalapu","html_url":"https://github.com/sanjeevmandalapu","followers_url":"https://api.github.com/users/sanjeevmandalapu/followers","following_url":"https://api.github.com/users/sanjeevmandalapu/following{/other_user}","gists_url":"https://api.github.com/users/sanjeevmandalapu/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeevmandalapu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeevmandalapu/subscriptions","organizations_url":"https://api.github.com/users/sanjeevmandalapu/orgs","repos_url":"https://api.github.com/users/sanjeevmandalapu/repos","events_url":"https://api.github.com/users/sanjeevmandalapu/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeevmandalapu/received_events","type":"User","site_admin":false},"body":"HttpClient does not support preemptive authentication out of the box resulting in 401 errors being thrown at the API servers. Every request coming from the clients using the SDK is resulting in two calls. A 401 and then a subsequent 202 (when the proxy is now passing the credentials).\r\n\r\nThis code change is targeted to add the preemptive authentication to avoid the duplicate 401","created_at":"2016-04-19T08:15:42Z","updated_at":"2016-04-19T08:15:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/whispir/whispir-java-sdk/pulls/2/commits","review_comments_url":"https://api.github.com/repos/whispir/whispir-java-sdk/pulls/2/comments","review_comment_url":"https://api.github.com/repos/whispir/whispir-java-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/whispir/whispir-java-sdk/issues/2/comments","statuses_url":"https://api.github.com/repos/whispir/whispir-java-sdk/statuses/e6ce6b2ce82ff3beda009e6ac64fd43f6f801aee","head":{"label":"whispir:sanjeevmandalapu-PM-1813","ref":"sanjeevmandalapu-PM-1813","sha":"e6ce6b2ce82ff3beda009e6ac64fd43f6f801aee","user":{"login":"whispir","id":8627159,"avatar_url":"https://avatars.githubusercontent.com/u/8627159?v=3","gravatar_id":"","url":"https://api.github.com/users/whispir","html_url":"https://github.com/whispir","followers_url":"https://api.github.com/users/whispir/followers","following_url":"https://api.github.com/users/whispir/following{/other_user}","gists_url":"https://api.github.com/users/whispir/gists{/gist_id}","starred_url":"https://api.github.com/users/whispir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whispir/subscriptions","organizations_url":"https://api.github.com/users/whispir/orgs","repos_url":"https://api.github.com/users/whispir/repos","events_url":"https://api.github.com/users/whispir/events{/privacy}","received_events_url":"https://api.github.com/users/whispir/received_events","type":"Organization","site_admin":false},"repo":{"id":23756383,"name":"whispir-java-sdk","full_name":"whispir/whispir-java-sdk","owner":{"login":"whispir","id":8627159,"avatar_url":"https://avatars.githubusercontent.com/u/8627159?v=3","gravatar_id":"","url":"https://api.github.com/users/whispir","html_url":"https://github.com/whispir","followers_url":"https://api.github.com/users/whispir/followers","following_url":"https://api.github.com/users/whispir/following{/other_user}","gists_url":"https://api.github.com/users/whispir/gists{/gist_id}","starred_url":"https://api.github.com/users/whispir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whispir/subscriptions","organizations_url":"https://api.github.com/users/whispir/orgs","repos_url":"https://api.github.com/users/whispir/repos","events_url":"https://api.github.com/users/whispir/events{/privacy}","received_events_url":"https://api.github.com/users/whispir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/whispir/whispir-java-sdk","description":"Java based SDK for the Whispir.io API","fork":false,"url":"https://api.github.com/repos/whispir/whispir-java-sdk","forks_url":"https://api.github.com/repos/whispir/whispir-java-sdk/forks","keys_url":"https://api.github.com/repos/whispir/whispir-java-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whispir/whispir-java-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whispir/whispir-java-sdk/teams","hooks_url":"https://api.github.com/repos/whispir/whispir-java-sdk/hooks","issue_events_url":"https://api.github.com/repos/whispir/whispir-java-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/whispir/whispir-java-sdk/events","assignees_url":"https://api.github.com/repos/whispir/whispir-java-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/whispir/whispir-java-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/whispir/whispir-java-sdk/tags","blobs_url":"https://api.github.com/repos/whispir/whispir-java-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whispir/whispir-java-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whispir/whispir-java-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/whispir/whispir-java-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whispir/whispir-java-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/whispir/whispir-java-sdk/languages","stargazers_url":"https://api.github.com/repos/whispir/whispir-java-sdk/stargazers","contributors_url":"https://api.github.com/repos/whispir/whispir-java-sdk/contributors","subscribers_url":"https://api.github.com/repos/whispir/whispir-java-sdk/subscribers","subscription_url":"https://api.github.com/repos/whispir/whispir-java-sdk/subscription","commits_url":"https://api.github.com/repos/whispir/whispir-java-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/whispir/whispir-java-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/whispir/whispir-java-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/whispir/whispir-java-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/whispir/whispir-java-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/whispir/whispir-java-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whispir/whispir-java-sdk/merges","archive_url":"https://api.github.com/repos/whispir/whispir-java-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whispir/whispir-java-sdk/downloads","issues_url":"https://api.github.com/repos/whispir/whispir-java-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/whispir/whispir-java-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/whispir/whispir-java-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/whispir/whispir-java-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whispir/whispir-java-sdk/labels{/name}","releases_url":"https://api.github.com/repos/whispir/whispir-java-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/whispir/whispir-java-sdk/deployments","created_at":"2014-09-07T09:17:50Z","updated_at":"2015-12-27T01:03:26Z","pushed_at":"2016-04-19T07:36:05Z","git_url":"git://github.com/whispir/whispir-java-sdk.git","ssh_url":"git@github.com:whispir/whispir-java-sdk.git","clone_url":"https://github.com/whispir/whispir-java-sdk.git","svn_url":"https://github.com/whispir/whispir-java-sdk","homepage":"https://whispir.io","size":103,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"whispir:master","ref":"master","sha":"30ee966bc79700afff1f5d4e25573ed839193c8b","user":{"login":"whispir","id":8627159,"avatar_url":"https://avatars.githubusercontent.com/u/8627159?v=3","gravatar_id":"","url":"https://api.github.com/users/whispir","html_url":"https://github.com/whispir","followers_url":"https://api.github.com/users/whispir/followers","following_url":"https://api.github.com/users/whispir/following{/other_user}","gists_url":"https://api.github.com/users/whispir/gists{/gist_id}","starred_url":"https://api.github.com/users/whispir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whispir/subscriptions","organizations_url":"https://api.github.com/users/whispir/orgs","repos_url":"https://api.github.com/users/whispir/repos","events_url":"https://api.github.com/users/whispir/events{/privacy}","received_events_url":"https://api.github.com/users/whispir/received_events","type":"Organization","site_admin":false},"repo":{"id":23756383,"name":"whispir-java-sdk","full_name":"whispir/whispir-java-sdk","owner":{"login":"whispir","id":8627159,"avatar_url":"https://avatars.githubusercontent.com/u/8627159?v=3","gravatar_id":"","url":"https://api.github.com/users/whispir","html_url":"https://github.com/whispir","followers_url":"https://api.github.com/users/whispir/followers","following_url":"https://api.github.com/users/whispir/following{/other_user}","gists_url":"https://api.github.com/users/whispir/gists{/gist_id}","starred_url":"https://api.github.com/users/whispir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whispir/subscriptions","organizations_url":"https://api.github.com/users/whispir/orgs","repos_url":"https://api.github.com/users/whispir/repos","events_url":"https://api.github.com/users/whispir/events{/privacy}","received_events_url":"https://api.github.com/users/whispir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/whispir/whispir-java-sdk","description":"Java based SDK for the Whispir.io API","fork":false,"url":"https://api.github.com/repos/whispir/whispir-java-sdk","forks_url":"https://api.github.com/repos/whispir/whispir-java-sdk/forks","keys_url":"https://api.github.com/repos/whispir/whispir-java-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whispir/whispir-java-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whispir/whispir-java-sdk/teams","hooks_url":"https://api.github.com/repos/whispir/whispir-java-sdk/hooks","issue_events_url":"https://api.github.com/repos/whispir/whispir-java-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/whispir/whispir-java-sdk/events","assignees_url":"https://api.github.com/repos/whispir/whispir-java-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/whispir/whispir-java-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/whispir/whispir-java-sdk/tags","blobs_url":"https://api.github.com/repos/whispir/whispir-java-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whispir/whispir-java-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whispir/whispir-java-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/whispir/whispir-java-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whispir/whispir-java-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/whispir/whispir-java-sdk/languages","stargazers_url":"https://api.github.com/repos/whispir/whispir-java-sdk/stargazers","contributors_url":"https://api.github.com/repos/whispir/whispir-java-sdk/contributors","subscribers_url":"https://api.github.com/repos/whispir/whispir-java-sdk/subscribers","subscription_url":"https://api.github.com/repos/whispir/whispir-java-sdk/subscription","commits_url":"https://api.github.com/repos/whispir/whispir-java-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/whispir/whispir-java-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/whispir/whispir-java-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/whispir/whispir-java-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/whispir/whispir-java-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/whispir/whispir-java-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whispir/whispir-java-sdk/merges","archive_url":"https://api.github.com/repos/whispir/whispir-java-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whispir/whispir-java-sdk/downloads","issues_url":"https://api.github.com/repos/whispir/whispir-java-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/whispir/whispir-java-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/whispir/whispir-java-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/whispir/whispir-java-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whispir/whispir-java-sdk/labels{/name}","releases_url":"https://api.github.com/repos/whispir/whispir-java-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/whispir/whispir-java-sdk/deployments","created_at":"2014-09-07T09:17:50Z","updated_at":"2015-12-27T01:03:26Z","pushed_at":"2016-04-19T07:36:05Z","git_url":"git://github.com/whispir/whispir-java-sdk.git","ssh_url":"git@github.com:whispir/whispir-java-sdk.git","clone_url":"https://github.com/whispir/whispir-java-sdk.git","svn_url":"https://github.com/whispir/whispir-java-sdk","homepage":"https://whispir.io","size":103,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/whispir/whispir-java-sdk/pulls/2"},"html":{"href":"https://github.com/whispir/whispir-java-sdk/pull/2"},"issue":{"href":"https://api.github.com/repos/whispir/whispir-java-sdk/issues/2"},"comments":{"href":"https://api.github.com/repos/whispir/whispir-java-sdk/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/whispir/whispir-java-sdk/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/whispir/whispir-java-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/whispir/whispir-java-sdk/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/whispir/whispir-java-sdk/statuses/e6ce6b2ce82ff3beda009e6ac64fd43f6f801aee"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":2,"changed_files":1}}