Skip to content

Commit 9fe51f5

Browse files
kylos101ona-agent
andcommitted
server: simplify Kiro OAuth client to match VS Code pattern
Use createVSCodeClient helper function instead of custom configuration to maintain consistency with other editor integrations. Co-authored-by: Ona <[email protected]>
1 parent dcf6ab8 commit 9fe51f5

File tree

1 file changed

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

1 file changed

+2
-21
lines changed

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

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -166,26 +166,7 @@ const vscodeInsiders = createVSCodeClient("vscode-insiders", "VS Code Insiders")
166166

167167
const vscodium = createVSCodeClient("vscodium", "VSCodium");
168168
const cursor = createVSCodeClient("cursor", "Cursor");
169-
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-
};
169+
const kiro = createVSCodeClient("kiro", "Kiro");
189170

190171
export const inMemoryDatabase: InMemory = {
191172
clients: {
@@ -198,7 +179,7 @@ export const inMemoryDatabase: InMemory = {
198179
[cursor.id]: cursor,
199180
[desktopClient.id]: desktopClient,
200181
[toolbox.id]: toolbox,
201-
[kiroClient.id]: kiroClient,
182+
[kiro.id]: kiro,
202183
},
203184
tokens: {},
204185
scopes: {},

0 commit comments

Comments
 (0)