{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-pull-request-github/issues/432","repository_url":"https://api.github.com/repos/Microsoft/vscode-pull-request-github","labels_url":"https://api.github.com/repos/Microsoft/vscode-pull-request-github/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-pull-request-github/issues/432/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-pull-request-github/issues/432/events","html_url":"https://github.com/Microsoft/vscode-pull-request-github/issues/432","id":359166406,"node_id":"MDU6SXNzdWUzNTkxNjY0MDY=","number":432,"title":"404 when authenticating with GH enterprise","user":{"login":"pmwisdom","id":6887500,"node_id":"MDQ6VXNlcjY4ODc1MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/6887500?v=4","gravatar_id":"","url":"https://api.github.com/users/pmwisdom","html_url":"https://github.com/pmwisdom","followers_url":"https://api.github.com/users/pmwisdom/followers","following_url":"https://api.github.com/users/pmwisdom/following{/other_user}","gists_url":"https://api.github.com/users/pmwisdom/gists{/gist_id}","starred_url":"https://api.github.com/users/pmwisdom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmwisdom/subscriptions","organizations_url":"https://api.github.com/users/pmwisdom/orgs","repos_url":"https://api.github.com/users/pmwisdom/repos","events_url":"https://api.github.com/users/pmwisdom/events{/privacy}","received_events_url":"https://api.github.com/users/pmwisdom/received_events","type":"User","site_admin":false},"labels":[{"id":1053663545,"node_id":"MDU6TGFiZWwxMDUzNjYzNTQ1","url":"https://api.github.com/repos/Microsoft/vscode-pull-request-github/labels/GitHubEnterprise","name":"GitHubEnterprise","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-09-11T18:27:56Z","updated_at":"2018-09-16T20:56:40Z","closed_at":null,"author_association":"NONE","body":"<!-- Use Help > Report Issue to prefill these. -->\r\n- Extension version: 0.1.2\r\n- VSCode Version: 1.27.1\r\n- OS: Mac OSX\r\n\r\nSteps to Reproduce:\r\n\r\n1. Add GH enterprise to user settings hosts \r\nex: \t\"github.hosts\": [\r\n\t\t{\r\n\t\t\t\"host\": \"https://github.example.com/\"\r\n\t\t}\r\n\t]\r\n2. Launch VS Code\r\n3. Go To SCM Panel\r\n4. Authentication popup is displayed\r\n5. Click sign in\r\n6. Click continue on browser tab that opens up\r\n7. 404 page appears for the redirected url to our enterprise instance"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-pull-request-github/issues/comments/421832083","html_url":"https://github.com/Microsoft/vscode-pull-request-github/issues/432#issuecomment-421832083","issue_url":"https://api.github.com/repos/Microsoft/vscode-pull-request-github/issues/432","id":421832083,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTgzMjA4Mw==","user":{"login":"reverbc","id":783515,"node_id":"MDQ6VXNlcjc4MzUxNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/783515?v=4","gravatar_id":"","url":"https://api.github.com/users/reverbc","html_url":"https://github.com/reverbc","followers_url":"https://api.github.com/users/reverbc/followers","following_url":"https://api.github.com/users/reverbc/following{/other_user}","gists_url":"https://api.github.com/users/reverbc/gists{/gist_id}","starred_url":"https://api.github.com/users/reverbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reverbc/subscriptions","organizations_url":"https://api.github.com/users/reverbc/orgs","repos_url":"https://api.github.com/users/reverbc/repos","events_url":"https://api.github.com/users/reverbc/events{/privacy}","received_events_url":"https://api.github.com/users/reverbc/received_events","type":"User","site_admin":false},"created_at":"2018-09-16T20:56:40Z","updated_at":"2018-09-16T20:56:40Z","author_association":"NONE","body":"Thanks @ultimatemonty for the workaround. I got my plugin working by creating token with the following permission: `read:user`, `repo`, `user:email`, `write:discussion`. Got these permission from the queries of 404 request (original: `scope=read%3Auser%20user%3Aemail%20repo%20write%3Adiscussion`)"}}
{"actor":{"display_login":"reverbc"}}