From 910b13302c70790af7beb16c9ffe3aa7f9588e09 Mon Sep 17 00:00:00 2001 From: Huiwen Date: Fri, 19 Jul 2024 14:11:57 +0800 Subject: [PATCH] [TB] add oauth entry (#20049) --- components/server/src/oauth-server/db.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/server/src/oauth-server/db.ts b/components/server/src/oauth-server/db.ts index a6191d504d5dc2..7f1aa17ebba996 100644 --- a/components/server/src/oauth-server/db.ts +++ b/components/server/src/oauth-server/db.ts @@ -141,6 +141,17 @@ const desktopClient: OAuthClient = { ], }; +const toolbox: OAuthClient = { + id: "toolbox-gateway-gitpod-plugin", + name: "JetBrains Toolbox Gitpod Plugin", + redirectUris: ["jetbrains://gateway/io.gitpod.toolbox.gateway/auth"], + allowedGrants: ["authorization_code"], + scopes: [ + // We scope all so that it can work in papi like a PAT + { name: "function:*" }, + ], +}; + const vscode = createVSCodeClient("vscode", "VS Code"); const vscodeInsiders = createVSCodeClient("vscode-insiders", "VS Code Insiders"); @@ -157,6 +168,7 @@ export const inMemoryDatabase: InMemory = { [vscodium.id]: vscodium, [cursor.id]: cursor, [desktopClient.id]: desktopClient, + [toolbox.id]: toolbox, }, tokens: {}, scopes: {},