Fix: Update keycloak-test-users.env with correct email-format usernames #248

Open
opened 2026-06-18 03:27:19 +00:00 by ldraney · 0 comments
Owner

Type

Bug

Lineage

Discovered during validation of #246 (OmniAuth redirect_uri fix).

Repo

ldraney/landscaping-assistant

What Broke

~/secrets/landscaping-assistant/keycloak-test-users.env documents usernames as short form (e.g. lucas-super-admin) but the actual Keycloak realm users have email-format usernames (e.g. lucas-super-admin@test.landscaping.local). Login fails with "Invalid username or password" when using the documented short form.

Repro Steps

  1. Read ~/secrets/landscaping-assistant/keycloak-test-users.env
  2. Try to log in to Keycloak with lucas-super-admin and Test1234!
  3. Observe: "Invalid username or password"
  4. Try with lucas-super-admin@test.landscaping.local — works

Expected Behavior

The secrets file should document the correct usernames that actually work for login.

Environment

  • Keycloak realm: landscaping
  • Keycloak URL: keycloak.tail5b443a.ts.net
  • Secrets file: ~/secrets/landscaping-assistant/keycloak-test-users.env

Acceptance Criteria

  • keycloak-test-users.env updated with correct @test.landscaping.local suffix
  • Or: Keycloak users updated to accept the short form as username (not email)
  • ldraney/landscaping-assistant #246
### Type Bug ### Lineage Discovered during validation of #246 (OmniAuth redirect_uri fix). ### Repo `ldraney/landscaping-assistant` ### What Broke `~/secrets/landscaping-assistant/keycloak-test-users.env` documents usernames as short form (e.g. `lucas-super-admin`) but the actual Keycloak realm users have email-format usernames (e.g. `lucas-super-admin@test.landscaping.local`). Login fails with "Invalid username or password" when using the documented short form. ### Repro Steps 1. Read `~/secrets/landscaping-assistant/keycloak-test-users.env` 2. Try to log in to Keycloak with `lucas-super-admin` and `Test1234!` 3. Observe: "Invalid username or password" 4. Try with `lucas-super-admin@test.landscaping.local` — works ### Expected Behavior The secrets file should document the correct usernames that actually work for login. ### Environment - Keycloak realm: landscaping - Keycloak URL: keycloak.tail5b443a.ts.net - Secrets file: `~/secrets/landscaping-assistant/keycloak-test-users.env` ### Acceptance Criteria - [ ] `keycloak-test-users.env` updated with correct `@test.landscaping.local` suffix - [ ] Or: Keycloak users updated to accept the short form as username (not email) ### Related - `ldraney/landscaping-assistant #246`
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/landscaping-assistant#248
No description provided.