Implement GitHub Enterprise authn provider (#115940)

This commit is contained in:
Kevin Abel
2021-05-07 16:13:11 -05:00
committed by GitHub
parent 0f64d3a2e5
commit 4978a1891e
5 changed files with 200 additions and 123 deletions

View File

@@ -4,7 +4,7 @@
"description": "%description%",
"publisher": "vscode",
"license": "MIT",
"version": "0.0.1",
"version": "0.0.2",
"engines": {
"vscode": "^1.41.0"
},
@@ -19,7 +19,8 @@
"web"
],
"activationEvents": [
"onAuthenticationRequest:github"
"onAuthenticationRequest:github",
"onAuthenticationRequest:github-enterprise"
],
"capabilities": {
"virtualWorkspaces": true,
@@ -31,7 +32,14 @@
"commands": [
{
"command": "github.provide-token",
"title": "Manually Provide Token"
"title": "Manually Provide Token",
"category": "GitHub"
},
{
"command": "github-enterprise.provide-token",
"title": "Manually Provide Token",
"category": "GitHub Enterprise"
}
],
"menus": {
@@ -39,6 +47,10 @@
{
"command": "github.provide-token",
"when": "false"
},
{
"command": "github-enterprise.provide-token",
"when": "false"
}
]
},
@@ -46,8 +58,21 @@
{
"label": "GitHub",
"id": "github"
},
{
"label": "GitHub Enterprise",
"id": "github-enterprise"
}
]
],
"configuration": {
"title": "GitHub Enterprise Authentication Provider",
"properties": {
"github-enterprise.uri" : {
"type": "string",
"description": "URI of your GitHub Enterprise Instanace"
}
}
}
},
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"main": "./out/extension.js",