Skip to content

Commit

Permalink
[TB] add oauth entry (#20049)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh authored Jul 19, 2024
1 parent 8df5d2f commit 910b133
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/server/src/oauth-server/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand All @@ -157,6 +168,7 @@ export const inMemoryDatabase: InMemory = {
[vscodium.id]: vscodium,
[cursor.id]: cursor,
[desktopClient.id]: desktopClient,
[toolbox.id]: toolbox,
},
tokens: {},
scopes: {},
Expand Down

0 comments on commit 910b133

Please sign in to comment.