Test user login fails: keycloak-test-users.env has wrong usernames #249
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 during TestFlight onboarding session.
Repo
ldraney/landscaping-assistantWhat Broke
Test user credentials in
~/secrets/landscaping-assistant/keycloak-test-users.envlist short-form usernames (e.g.lucas-super-admin), but the actual Keycloak usernames are full email addresses (e.g.lucas-super-admin@test.landscaping.local). Login fails with "Invalid username or password."Root cause: the landscaping realm has
registrationEmailAsUsername = true, so when test users were created their email became their username. The secrets file was written with short-form names that don't exist in Keycloak.Repro Steps
lucas-super-adminand passwordTest1234!lucas-super-admin@test.landscaping.localwith same passwordExpected Behavior
Credentials documented in
keycloak-test-users.envshould work as-is without needing to know the@test.landscaping.localsuffix.Environment
Acceptance Criteria
Related
project-landscaping-assistant— project this affectsdocs/keycloak-setup.md— documents test users with short-form namesldraney referenced this issue2026-06-18 21:13:13 +00:00