Skip to content

Commit 910b133

Browse files
authored
[TB] add oauth entry (#20049)
1 parent 8df5d2f commit 910b133

File tree

1 file changed

+12
-0
lines changed
  • components/server/src/oauth-server

1 file changed

+12
-0
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@ const desktopClient: OAuthClient = {
141141
],
142142
};
143143

144+
const toolbox: OAuthClient = {
145+
id: "toolbox-gateway-gitpod-plugin",
146+
name: "JetBrains Toolbox Gitpod Plugin",
147+
redirectUris: ["jetbrains://gateway/io.gitpod.toolbox.gateway/auth"],
148+
allowedGrants: ["authorization_code"],
149+
scopes: [
150+
// We scope all so that it can work in papi like a PAT
151+
{ name: "function:*" },
152+
],
153+
};
154+
144155
const vscode = createVSCodeClient("vscode", "VS Code");
145156
const vscodeInsiders = createVSCodeClient("vscode-insiders", "VS Code Insiders");
146157

@@ -157,6 +168,7 @@ export const inMemoryDatabase: InMemory = {
157168
[vscodium.id]: vscodium,
158169
[cursor.id]: cursor,
159170
[desktopClient.id]: desktopClient,
171+
[toolbox.id]: toolbox,
160172
},
161173
tokens: {},
162174
scopes: {},

0 commit comments

Comments
 (0)