Skip to content

Commit dcf6ab8

Browse files
kylos101ona-agent
andcommitted
server: add Kiro editor OAuth client support
Add kiro-gitpod OAuth client to enable Kiro editor integration with Gitpod workspaces. Co-authored-by: Ona <[email protected]>
1 parent 0d84199 commit dcf6ab8

File tree

1 file changed

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

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,26 @@ const vscodeInsiders = createVSCodeClient("vscode-insiders", "VS Code Insiders")
167167
const vscodium = createVSCodeClient("vscodium", "VSCodium");
168168
const cursor = createVSCodeClient("cursor", "Cursor");
169169

170+
const kiroClient: OAuthClient = {
171+
id: "kiro-gitpod",
172+
secret: "kiro-gitpod-secret",
173+
name: "Kiro Editor: Gitpod extension",
174+
redirectUris: ["kiro://gitpod.extension/complete-gitpod-auth"],
175+
allowedGrants: ["authorization_code"],
176+
scopes: [
177+
{ name: "function:getGitpodTokenScopes" },
178+
{ name: "function:getLoggedInUser" },
179+
{ name: "function:getWorkspace" },
180+
{ name: "function:getWorkspaces" },
181+
{ name: "function:getOwnerToken" },
182+
{ name: "function:startWorkspace" },
183+
{ name: "function:stopWorkspace" },
184+
{ name: "function:deleteWorkspace" },
185+
{ name: "function:listenForWorkspaceInstanceUpdates" },
186+
{ name: "resource:default" },
187+
],
188+
};
189+
170190
export const inMemoryDatabase: InMemory = {
171191
clients: {
172192
[localClient.id]: localClient,
@@ -178,6 +198,7 @@ export const inMemoryDatabase: InMemory = {
178198
[cursor.id]: cursor,
179199
[desktopClient.id]: desktopClient,
180200
[toolbox.id]: toolbox,
201+
[kiroClient.id]: kiroClient,
181202
},
182203
tokens: {},
183204
scopes: {},

0 commit comments

Comments
 (0)