You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use native Sentry device flow, remove oauth-proxy
Sentry now supports RFC 8628 Device Authorization Grant natively,
so we no longer need our custom oauth-proxy server.
Changes:
- Delete apps/oauth-proxy/ entirely
- Update oauth.ts to use Sentry's /oauth/device/code/ endpoint
- Move openBrowser to lib/browser.ts for reusability
- Remove duplicate DeviceCodeResponse type (use types/oauth.ts)
- Update DEVELOPMENT.md and README.md for new flow
- Add .env.example template
The CLI now communicates directly with Sentry using public client
authentication (no client_secret needed per RFC 8628 §5.6).
The CLI uses the OAuth 2.0 Device Authorization Grant ([RFC 8628](https://datatracker.ietf.org/doc/html/rfc8628)) for authentication. This flow is designed for CLI tools and other devices that can't easily handle browser redirects:
123
95
124
-
# Set environment variables in Vercel dashboard or via CLI:
125
-
bunx vercel env add SENTRY_CLIENT_ID
126
-
bunx vercel env add SENTRY_CLIENT_SECRET
127
-
```
96
+
1. CLI requests a device code from Sentry
97
+
2. User is shown a code and URL to visit
98
+
3. CLI polls Sentry until the user authorizes
99
+
4. CLI receives access token and stores it locally
128
100
129
-
After deployment, update the default `OAUTH_PROXY_URL` in `packages/cli/src/lib/oauth.ts` to your Vercel URL.
101
+
No proxy server is needed - the CLI communicates directly with Sentry.
0 commit comments