Skip to content

fix(auth): request team admin OAuth scope - #1373

Draft
betegon wants to merge 1 commit into
mainfrom
fix/oauth-team-admin-scope
Draft

fix(auth): request team admin OAuth scope#1373
betegon wants to merge 1 commit into
mainfrom
fix/oauth-team-admin-scope

Conversation

@betegon

@betegon betegon commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

Add team:admin to the CLI's standard OAuth scope set so authenticated Team Admins can create projects through team-scoped API endpoints. Regenerate the two documentation projections owned by the OAuth scope generator.

This expands what the token may do; it does not grant Team Admin status to users who do not already have that role.

Test plan

  • pnpm --filter sentry exec vitest run test/lib/oauth.test.ts
  • pnpm --filter sentry exec biome check src/lib/oauth.ts test/lib/oauth.test.ts
  • pnpm --filter sentry exec tsc --noEmit
  • pnpm --filter sentry run check:docs-sections

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make sure to refresh with the new scope on failure for existing tokens.

@betegon

betegon commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

Thanks for the heads up! I'll check it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants