Skip to content

Commit a06960f

Browse files
committed
foo
1 parent 0a2d6db commit a06960f

File tree

1 file changed

+7
-2
lines changed
  • components/server/src/oauth-server

1 file changed

+7
-2
lines changed

components/server/src/oauth-server/db.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,16 @@ const jetBrainsGateway: OAuthClient = {
5757
],
5858
};
5959

60-
function createVSCodeClient(protocol: "vscode" | "vscode-insiders" | "vscodium"): OAuthClient {
60+
function createVSCodeClient(protocol: "vscode" | "vscode-insiders" | "vscodium" | "gitpod-code"): OAuthClient {
6161
return {
6262
id: protocol + "-" + "gitpod",
6363
name: `VS${protocol === "vscodium" ? "Codium" : " Code"}${
6464
protocol === "vscode-insiders" ? " Insiders" : ""
6565
}: Gitpod extension`,
66-
redirectUris: [protocol + "://gitpod.gitpod-desktop/complete-gitpod-auth"],
66+
redirectUris: [
67+
protocol + "://gitpod.gitpod-desktop/complete-gitpod-auth",
68+
protocol + "://gitpod.gitpod-foo/complete-gitpod-auth",
69+
],
6770
allowedGrants: ["authorization_code"],
6871
scopes: [
6972
{ name: "function:getGitpodTokenScopes" },
@@ -82,6 +85,7 @@ function createVSCodeClient(protocol: "vscode" | "vscode-insiders" | "vscodium")
8285
const vscode = createVSCodeClient("vscode");
8386
const vscodeInsiders = createVSCodeClient("vscode-insiders");
8487
const vscodium = createVSCodeClient("vscodium");
88+
const gitpodcode = createVSCodeClient("gitpod-code");
8589

8690
export const inMemoryDatabase: InMemory = {
8791
clients: {
@@ -90,6 +94,7 @@ export const inMemoryDatabase: InMemory = {
9094
[vscode.id]: vscode,
9195
[vscodeInsiders.id]: vscodeInsiders,
9296
[vscodium.id]: vscodium,
97+
[gitpodcode.id]: gitpodcode,
9398
},
9499
tokens: {},
95100
scopes: {},

0 commit comments

Comments
 (0)