Commit 53021f6
authored
feat: support custom oauth & oidc providers (#2357)
## Summary
Add configurable custom OAuth/OIDC providers (phase 1) so projects can
integrate self‑hosted/regional identity providers without requiring code
changes.
## Problem
Current OAuth/OIDC providers are hardcoded, require provider-specific
code and env vars, and block customers who need self‑hosted or custom
IdPs (e.g. GitHub Enterprise, LINE, internal OIDC servers).
## Solution
Introduce database‑backed `oauth_providers` with custom:{identifier}
IDs, OIDC discovery + OAuth2 manual configuration, admin CRUD APIs, and
tier‑gated quotas, reusing existing /authorize and /callback flows with
JWT state + PKCE.1 parent a6076bc commit 53021f6
22 files changed
Lines changed: 4315 additions & 7 deletions
File tree
- internal
- api
- apierrors
- provider
- conf
- models
- utilities
- migrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
378 | 393 | | |
379 | 394 | | |
380 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
0 commit comments