OmniAuth sends no redirect_uri to Keycloak — login broken #166
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
Regression from PR #161 (OmniAuth restore after ROPC revert). The original PR #134 likely had the same bug but wasn't caught because Keycloak may have had looser validation at that time.
Repo
ldraney/landscaping-assistantWhat Broke
Clicking "Sign In" redirects to Keycloak with no
redirect_uriparameter. Keycloak returns 400: "Invalid parameter: redirect_uri". Login is completely broken on both prod and dev.The
omniauth_openid_connectgem (v0.8.0) does NOT auto-deriveredirect_urifrom the request — whenclient_options.redirect_uriisnil, it sendsnilto the OIDC client, which omits the parameter entirely.Repro Steps
https://landscaping-assistant.tail5b443a.ts.net/loginExpected Behavior
Keycloak should show the login form. The redirect_uri should be
https://landscaping-assistant.tail5b443a.ts.net/auth/keycloak/callback.Environment
Acceptance Criteria
redirect_uriparameter present in Keycloak authorization URLRelated
project-landscaping-assistant— main projectldraney/landscaping-assistant #161— OmniAuth restore PRpal-enterprisesapproach (explicitAPP_URLenv var)