stack/apps/backend/src
Bilal Godil 2d1db7a56e fix(saml): harden route guards and accept Response-level signature
Two bugs surfaced when running the SAML e2e suite against the live
backend (in a separate PR):

1. Routes accessed `tenancy.config.auth.saml.connections[id].field`
   without first checking that the entry exists. With strict null
   checks off, TS types this as always-defined and the route 500'd
   with a TypeError on missing connections instead of returning 404.
   Add an explicit `id in connections` guard at the top of each
   route (login, acs, metadata).

2. SAML responses signed at the Response element (samlify default,
   also what Okta + Azure AD emit) failed verification because the
   backend was configured with wantAssertionsSigned=true,
   wantAuthnResponseSigned=false — i.e. demanded an Assertion-level
   signature. Per SAML 2.0 §4.1.4.2 either is valid. Flip to
   wantAuthnResponseSigned=true so we accept what real-world IdPs
   actually send.
2026-04-29 16:46:22 -07:00
..
app fix(saml): harden route guards and accept Response-level signature 2026-04-29 16:46:22 -07:00
auto-migrations Migration tests 2026-02-17 15:58:06 -08:00
lib feat(stack-shared): add SAML connection config to project schema 2026-04-29 16:46:22 -07:00
oauth fix: refresh-token P2025 race with concurrent sign-out (#1372) 2026-04-24 18:44:39 +00:00
private Update submodules 2026-04-20 19:01:16 -07:00
route-handlers Don't override 5xx errors 2026-04-18 19:31:13 -07:00
saml fix(saml): harden route guards and accept Response-level signature 2026-04-29 16:46:22 -07:00
utils Backend fallback (cloud run) (#1306) 2026-04-11 00:57:37 +00:00
analytics.tsx Fix event capture 2024-08-14 12:49:35 -07:00
globals.d.ts Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
instrumentation.ts Onboarding app & restricted users (#1069) 2026-01-11 17:22:14 -08:00
polyfills.tsx waitUntil Sentry flush is complete 2026-04-18 22:28:02 -07:00
prisma-client.tsx Fix bigint serialization error on tracing 2026-04-18 14:46:03 -07:00
proxy.tsx External db sync (#1036) 2026-02-05 12:04:31 -08:00
s3.tsx session replays (#1187) 2026-02-16 14:15:17 -08:00
smart-router.tsx Move /api/v1 to /api/latest 2025-02-05 17:24:43 -08:00
stack.tsx Email outbox backend (#1030) 2025-12-12 10:26:38 -08:00