Skip to content

Commit

Permalink
feat: add org oauth scopes #cloud/13076 (#258)
Browse files Browse the repository at this point in the history
Related to neondatabase/cloud#13076

Back-end changes in neondatabase/cloud#15724

**Test**

After deploying back-end change to staging, I tested this change locally
`npm start auth -- --oauth-host=https://oauth2-stage.neon.build`

Tested on prod too, worked correctly. `npm start auth --
--oauth-host=https://oauth2.neon.tech`
  • Loading branch information
PlayLikeNeverB4 committed Aug 8, 2024
1 parent 4ff2d47 commit 7ee1236
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ const NEONCTL_SCOPES = [
'urn:neoncloud:projects:read',
'urn:neoncloud:projects:update',
'urn:neoncloud:projects:delete',
'urn:neoncloud:orgs:create',
'urn:neoncloud:orgs:read',
'urn:neoncloud:orgs:update',
'urn:neoncloud:orgs:delete',
'urn:neoncloud:orgs:permission',
] as const;

const AUTH_TIMEOUT_SECONDS = 60;
Expand Down

0 comments on commit 7ee1236

Please sign in to comment.