Commit 5c3e926
fix: support API key authentication in private mode
When LoginRequired=true, EjectUserBySiteInfo middleware only checked for
session-based authentication. API key requests were rejected with 401
even when using a valid key.
Now the middleware falls back to API key validation when no user session
is found, allowing programmatic access to private instances.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent fca80ab commit 5c3e926
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
95 | 104 | | |
96 | 105 | | |
97 | 106 | | |
| |||
0 commit comments