{"action":"created","comment":{"url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/comments/41784748","id":41784748,"diff_hunk":"@@ -0,0 +1,94 @@\n+﻿using System;\n+using System.Net;\n+using Newtonsoft.Json;\n+using System.Diagnostics;\n+\n+namespace NuGet.Credentials\n+{\n+    public class PluginCredentialProvider : ICredentialProvider\n+    {\n+        private readonly string path;\n+\n+        private readonly int timeoutSeconds;\n+\n+        public PluginCredentialProvider(string path, int timeoutSeconds)\n+        {\n+            this.path = path;\n+            this.timeoutSeconds = timeoutSeconds;\n+        }\n+\n+        public ICredentials Get(Uri uri, IWebProxy proxy = null, bool isProxyRequest = false, bool isRetry = false, bool nonInteractive = false)\n+        {\n+            if(isProxyRequest)\n+            {\n+                return null;\n+            }\n+\n+            PluginCredentialResponse response = null;\n+            try\n+            {\n+                var request = new PluginCredentialRequest\n+                {\n+                    Uri = uri.ToString(),\n+                    IsRetry = isRetry,\n+                    NonInteractive = nonInteractive\n+                };\n+\n+                response = Execute(request);\n+            }\n+            catch(PluginException)","path":"src/NuGet.Clients/NuGet.Credentials/PluginCredentialProvider.cs","position":39,"original_position":39,"commit_id":"981089b42be3b2dfe06e441c5567a1a1bd784ace","original_commit_id":"981089b42be3b2dfe06e441c5567a1a1bd784ace","user":{"login":"jascam","id":13953383,"avatar_url":"https://avatars.githubusercontent.com/u/13953383?v=3","gravatar_id":"","url":"https://api.github.com/users/jascam","html_url":"https://github.com/jascam","followers_url":"https://api.github.com/users/jascam/followers","following_url":"https://api.github.com/users/jascam/following{/other_user}","gists_url":"https://api.github.com/users/jascam/gists{/gist_id}","starred_url":"https://api.github.com/users/jascam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jascam/subscriptions","organizations_url":"https://api.github.com/users/jascam/orgs","repos_url":"https://api.github.com/users/jascam/repos","events_url":"https://api.github.com/users/jascam/events{/privacy}","received_events_url":"https://api.github.com/users/jascam/received_events","type":"User","site_admin":false},"body":"Comment why it is necessary to catch this exception if we are only going to throw since a quick glance makes this look odd...","created_at":"2015-10-12T18:15:22Z","updated_at":"2015-10-12T18:15:22Z","html_url":"https://github.com/PeterSpillman/NuGet.Client/pull/1#discussion_r41784748","pull_request_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/comments/41784748"},"html":{"href":"https://github.com/PeterSpillman/NuGet.Client/pull/1#discussion_r41784748"},"pull_request":{"href":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/1","id":47447674,"html_url":"https://github.com/PeterSpillman/NuGet.Client/pull/1","diff_url":"https://github.com/PeterSpillman/NuGet.Client/pull/1.diff","patch_url":"https://github.com/PeterSpillman/NuGet.Client/pull/1.patch","issue_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/issues/1","number":1,"state":"open","locked":false,"title":"Users/pspill/credential service","user":{"login":"PeterSpillman","id":6434305,"avatar_url":"https://avatars.githubusercontent.com/u/6434305?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterSpillman","html_url":"https://github.com/PeterSpillman","followers_url":"https://api.github.com/users/PeterSpillman/followers","following_url":"https://api.github.com/users/PeterSpillman/following{/other_user}","gists_url":"https://api.github.com/users/PeterSpillman/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterSpillman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterSpillman/subscriptions","organizations_url":"https://api.github.com/users/PeterSpillman/orgs","repos_url":"https://api.github.com/users/PeterSpillman/repos","events_url":"https://api.github.com/users/PeterSpillman/events{/privacy}","received_events_url":"https://api.github.com/users/PeterSpillman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-12T18:01:17Z","updated_at":"2015-10-12T18:15:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98c840bb60e68bd83dec619dc3ddeee642b28f6d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/1/commits","review_comments_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/1/comments","review_comment_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/issues/1/comments","statuses_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/statuses/981089b42be3b2dfe06e441c5567a1a1bd784ace","head":{"label":"PeterSpillman:users/pspill/credentialService","ref":"users/pspill/credentialService","sha":"981089b42be3b2dfe06e441c5567a1a1bd784ace","user":{"login":"PeterSpillman","id":6434305,"avatar_url":"https://avatars.githubusercontent.com/u/6434305?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterSpillman","html_url":"https://github.com/PeterSpillman","followers_url":"https://api.github.com/users/PeterSpillman/followers","following_url":"https://api.github.com/users/PeterSpillman/following{/other_user}","gists_url":"https://api.github.com/users/PeterSpillman/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterSpillman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterSpillman/subscriptions","organizations_url":"https://api.github.com/users/PeterSpillman/orgs","repos_url":"https://api.github.com/users/PeterSpillman/repos","events_url":"https://api.github.com/users/PeterSpillman/events{/privacy}","received_events_url":"https://api.github.com/users/PeterSpillman/received_events","type":"User","site_admin":false},"repo":{"id":43716281,"name":"NuGet.Client","full_name":"PeterSpillman/NuGet.Client","owner":{"login":"PeterSpillman","id":6434305,"avatar_url":"https://avatars.githubusercontent.com/u/6434305?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterSpillman","html_url":"https://github.com/PeterSpillman","followers_url":"https://api.github.com/users/PeterSpillman/followers","following_url":"https://api.github.com/users/PeterSpillman/following{/other_user}","gists_url":"https://api.github.com/users/PeterSpillman/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterSpillman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterSpillman/subscriptions","organizations_url":"https://api.github.com/users/PeterSpillman/orgs","repos_url":"https://api.github.com/users/PeterSpillman/repos","events_url":"https://api.github.com/users/PeterSpillman/events{/privacy}","received_events_url":"https://api.github.com/users/PeterSpillman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PeterSpillman/NuGet.Client","description":"Core client libraries for NuGet Services","fork":true,"url":"https://api.github.com/repos/PeterSpillman/NuGet.Client","forks_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/forks","keys_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/teams","hooks_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/hooks","issue_events_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/issues/events{/number}","events_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/events","assignees_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/assignees{/user}","branches_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/branches{/branch}","tags_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/tags","blobs_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/git/refs{/sha}","trees_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/statuses/{sha}","languages_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/languages","stargazers_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/stargazers","contributors_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/contributors","subscribers_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/subscribers","subscription_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/subscription","commits_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/commits{/sha}","git_commits_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/git/commits{/sha}","comments_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/comments{/number}","issue_comment_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/issues/comments{/number}","contents_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/contents/{+path}","compare_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/merges","archive_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/downloads","issues_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/issues{/number}","pulls_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls{/number}","milestones_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/milestones{/number}","notifications_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/labels{/name}","releases_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/releases{/id}","created_at":"2015-10-05T22:01:40Z","updated_at":"2015-10-05T22:01:45Z","pushed_at":"2015-10-12T18:01:18Z","git_url":"git://github.com/PeterSpillman/NuGet.Client.git","ssh_url":"git@github.com:PeterSpillman/NuGet.Client.git","clone_url":"https://github.com/PeterSpillman/NuGet.Client.git","svn_url":"https://github.com/PeterSpillman/NuGet.Client","homepage":null,"size":12165,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"PeterSpillman:features/credentials","ref":"features/credentials","sha":"aab10df262422e393c39bf672af00b94374eb081","user":{"login":"PeterSpillman","id":6434305,"avatar_url":"https://avatars.githubusercontent.com/u/6434305?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterSpillman","html_url":"https://github.com/PeterSpillman","followers_url":"https://api.github.com/users/PeterSpillman/followers","following_url":"https://api.github.com/users/PeterSpillman/following{/other_user}","gists_url":"https://api.github.com/users/PeterSpillman/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterSpillman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterSpillman/subscriptions","organizations_url":"https://api.github.com/users/PeterSpillman/orgs","repos_url":"https://api.github.com/users/PeterSpillman/repos","events_url":"https://api.github.com/users/PeterSpillman/events{/privacy}","received_events_url":"https://api.github.com/users/PeterSpillman/received_events","type":"User","site_admin":false},"repo":{"id":43716281,"name":"NuGet.Client","full_name":"PeterSpillman/NuGet.Client","owner":{"login":"PeterSpillman","id":6434305,"avatar_url":"https://avatars.githubusercontent.com/u/6434305?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterSpillman","html_url":"https://github.com/PeterSpillman","followers_url":"https://api.github.com/users/PeterSpillman/followers","following_url":"https://api.github.com/users/PeterSpillman/following{/other_user}","gists_url":"https://api.github.com/users/PeterSpillman/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterSpillman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterSpillman/subscriptions","organizations_url":"https://api.github.com/users/PeterSpillman/orgs","repos_url":"https://api.github.com/users/PeterSpillman/repos","events_url":"https://api.github.com/users/PeterSpillman/events{/privacy}","received_events_url":"https://api.github.com/users/PeterSpillman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PeterSpillman/NuGet.Client","description":"Core client libraries for NuGet Services","fork":true,"url":"https://api.github.com/repos/PeterSpillman/NuGet.Client","forks_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/forks","keys_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/teams","hooks_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/hooks","issue_events_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/issues/events{/number}","events_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/events","assignees_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/assignees{/user}","branches_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/branches{/branch}","tags_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/tags","blobs_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/git/refs{/sha}","trees_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/statuses/{sha}","languages_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/languages","stargazers_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/stargazers","contributors_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/contributors","subscribers_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/subscribers","subscription_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/subscription","commits_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/commits{/sha}","git_commits_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/git/commits{/sha}","comments_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/comments{/number}","issue_comment_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/issues/comments{/number}","contents_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/contents/{+path}","compare_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/merges","archive_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/downloads","issues_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/issues{/number}","pulls_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls{/number}","milestones_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/milestones{/number}","notifications_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/labels{/name}","releases_url":"https://api.github.com/repos/PeterSpillman/NuGet.Client/releases{/id}","created_at":"2015-10-05T22:01:40Z","updated_at":"2015-10-05T22:01:45Z","pushed_at":"2015-10-12T18:01:18Z","git_url":"git://github.com/PeterSpillman/NuGet.Client.git","ssh_url":"git@github.com:PeterSpillman/NuGet.Client.git","clone_url":"https://github.com/PeterSpillman/NuGet.Client.git","svn_url":"https://github.com/PeterSpillman/NuGet.Client","homepage":null,"size":12165,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"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/PeterSpillman/NuGet.Client/pulls/1"},"html":{"href":"https://github.com/PeterSpillman/NuGet.Client/pull/1"},"issue":{"href":"https://api.github.com/repos/PeterSpillman/NuGet.Client/issues/1"},"comments":{"href":"https://api.github.com/repos/PeterSpillman/NuGet.Client/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PeterSpillman/NuGet.Client/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/PeterSpillman/NuGet.Client/statuses/981089b42be3b2dfe06e441c5567a1a1bd784ace"}}}}