Commit d7e43e9
committed
fix(auth): bake public OAuth client ID as fallback in getClientId()
The OAuth client ID is a public value — Device Authorization Grant (RFC 8628)
uses a public-client flow with no client secret. The value is already stored
as a plain repo variable (vars.SENTRY_CLIENT_ID) in CI, not a secret.
Committing it as DEFAULT_OAUTH_CLIENT_ID eliminates the .env.local requirement
for local development against sentry.io. The priority chain is unchanged:
SENTRY_CLIENT_ID env var → SENTRY_CLIENT_ID_BUILD (build-time) → committed default
Self-hosted users still override via SENTRY_CLIENT_ID env var; production
release builds still inject via SENTRY_CLIENT_ID_BUILD — no behaviour change
for either path.1 parent c662830 commit d7e43e9
2 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
46 | 59 | | |
47 | 60 | | |
48 | 61 | | |
49 | | - | |
50 | | - | |
| 62 | + | |
51 | 63 | | |
52 | 64 | | |
53 | 65 | | |
| |||
60 | 72 | | |
61 | 73 | | |
62 | 74 | | |
63 | | - | |
| 75 | + | |
64 | 76 | | |
65 | 77 | | |
66 | 78 | | |
| |||
0 commit comments