Commit 03fdfb0
fix(auth): enable dual-auth in SSO mode for E2E tests and API clients
buildForwardHeadersSSO now falls back to Bearer token from request
when no SSO session cookie exists. This enables:
- SSO users: session cookie → JWT forwarded
- E2E tests / API clients: Bearer token in request → forwarded directly
Also adds Keycloak to wait-for-ready.sh to prevent race conditions
where frontend starts before Keycloak is ready.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent da361b8 commit 03fdfb0
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
176 | 184 | | |
177 | 185 | | |
178 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
0 commit comments