Commit 14f8ddf
fix: OIDC init retries on failure instead of permanently disabling (#2402)
* fix: OIDC init retries on failure instead of permanently disabling
If OIDC discovery failed (network timeout, provider briefly unavailable),
isInitialized was set to true but oidcConfig stayed null — permanently
disabling OIDC until container restart. This caused the login page to
show "Local authentication is disabled and OIDC is not configured" after
transient failures.
Changes:
- isOIDCEnabled() now returns true if OIDC was configured but init failed
(so the OIDC login button stays visible)
- Auto-retries up to 10 times at 30s intervals when discovery fails
- Clears retry state on success
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add cleanupOIDC for graceful shutdown of retry timers
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 42a2ede commit 14f8ddf
1 file changed
+42
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
20 | | - | |
21 | | - | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| 56 | + | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| 61 | + | |
54 | 62 | | |
| 63 | + | |
55 | 64 | | |
56 | 65 | | |
57 | 66 | | |
58 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
59 | 97 | | |
60 | 98 | | |
| 99 | + | |
61 | 100 | | |
62 | 101 | | |
63 | | - | |
| 102 | + | |
64 | 103 | | |
65 | 104 | | |
66 | 105 | | |
| |||
0 commit comments