fix(auth): restore BetterAuth OAuth2 flow and compose wiring #426
Reference in New Issue
Block a user
Delete Branch "fix/authentik-betterauth-interop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary\n- set BetterAuth from (fallback ) with production safety checks\n- align OIDC redirect validation and plugin config to and pass explicit \n- preserve BetterAuth/better-call HTTP error status/body in auth controller for actionable client errors\n- update login OAuth callback URL to absolute origin in web app\n- update all docker compose variants and for and corrected OIDC redirect defaults\n- update auth docs to match the callback path and env expectations\n\n## Verification\n-
RUN v4.0.18 /home/jwoltje/src/mosaic-stack/apps/api
stdout | src/auth/auth.controller.spec.ts
[dotenv@17.2.4] injecting env (5) from .env.test -- tip: 🔐 prevent building .env in docker: https://dotenvx.com/prebuild
stdout | src/auth/auth.config.spec.ts
[dotenv@17.2.4] injecting env (5) from .env.test -- tip: 🗂️ backup and recover secrets: https://dotenvx.com/ops
✓ src/auth/auth.config.spec.ts (59 tests) 21ms
✓ src/auth/auth.controller.spec.ts (18 tests) 38ms
Test Files 2 passed (2)
Tests 77 passed (77)
Start at 23:39:00
Duration 591ms (transform 275ms, setup 80ms, import 497ms, tests 59ms, environment 0ms)\n-
RUN v3.2.4 /home/jwoltje/src/mosaic-stack/apps/web
✓ src/app/(auth)/login/page.test.tsx (33 tests) 819ms
Test Files 1 passed (1)
Tests 33 passed (33)
Start at 23:39:01
Duration 1.80s (transform 132ms, setup 110ms, collect 248ms, tests 819ms, environment 272ms, prepare 103ms)
Clean PR summary (body was shell-mangled during CLI submission):
Verification: