Bug: Production 404 — authenticate_user! redirects to GET /auth/keycloak which OmniAuth rejects #150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Type
Bug
Lineage
Standalone — discovered when production returned 404 for all authenticated routes. Regression from PR #134 (Keycloak OmniAuth login).
Repo
ldraney/landscaping-assistantWhat Broke
Every protected route in production returns 404.
authenticate_user!redirects unauthenticated users toGET /auth/keycloak, but OmniAuth 2.x only accepts POST on the request phase. The GET request has no matching route handler.Repro Steps
KEYCLOAK_URLset (production)/today)authenticate_user!fires, redirects toGET /auth/keycloakExpected Behavior
Unauthenticated users see a login page with a POST button that initiates the Keycloak OAuth flow.
Environment
7fb76b5(current main)Acceptance Criteria
/login/auth/keycloakRelated
project-landscaping-assistantldraney/landscaping-assistant #134— PR that introduced the broken redirectldraney/landscaping-assistant #135— PR that fixed tests but not the controllerldraney/landscaping-assistant #149— follow-up spike for smoke tests and observability