admin) allow local login user management #39

Merged
shaun merged 6 commits from ai-agent/38-allow-administrators-to-create-local-login-users into main 2026-02-22 20:07:47 +00:00
Member
No description provided.
shaun was assigned by ai-agent 2026-02-22 19:36:50 +00:00
ai-agent added 1 commit 2026-02-22 19:36:51 +00:00
admin) manage local login users
Some checks failed
PR Checks / lint-test-and-docker-build (pull_request) Failing after 1m2s
5c7bae61b5
shaun added 1 commit 2026-02-22 19:46:57 +00:00
fix(admin/users): convert Svelte 4 event syntax to Svelte 5
All checks were successful
PR Checks / lint-test-and-docker-build (pull_request) Successful in 2m15s
345da2ef7a
Replace `on:keydown` with `onkeydown` and `onsubmit|preventDefault`
with inline handlers calling `e.preventDefault()` to fix compilation
errors caused by mixing old and new Svelte event syntax.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
shaun added 1 commit 2026-02-22 19:53:50 +00:00
fix(login): pass callbackUrl so local auth redirects to app after sign-in
All checks were successful
PR Checks / lint-test-and-docker-build (pull_request) Successful in 2m15s
348aac996d
After a successful Credentials sign-in, Auth.js was redirecting to its
own built-in /auth/signin page because no callbackUrl was provided.
Add a callbackUrl hidden field (pointing to the app root) so Auth.js
redirects back to the application after local login completes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
shaun added 1 commit 2026-02-22 19:57:59 +00:00
fix(login): post local credentials to /auth/callback/local not /signin/local
Some checks failed
PR Checks / lint-test-and-docker-build (pull_request) Failing after 1m3s
67648a5ba4
The Credentials provider in Auth.js processes credentials at the
/callback/:provider endpoint, not /signin/:provider. Posting to
/signin/local hits a code path that just redirects back to the Auth.js
built-in sign-in page. Changing to /callback/local routes the form
submission to the correct handler.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
shaun added 1 commit 2026-02-22 20:02:46 +00:00
feat(admin/users): show all auth sources when a user has multiple credentials
Some checks failed
PR Checks / lint-test-and-docker-build (pull_request) Failing after 1m0s
f4c5ee1f8f
listUsers() now LEFT JOINs local_credentials and returns has_local_credentials.
The auth source cell renders both the primary auth_source badge and a secondary
Local badge when an OIDC user also has local credentials set.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
shaun added 1 commit 2026-02-22 20:04:58 +00:00
test(login): update test to expect /callback/local and assert callbackUrl
All checks were successful
PR Checks / lint-test-and-docker-build (pull_request) Successful in 2m12s
4b06ecfa22
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
shaun merged commit e11fcb56a2 into main 2026-02-22 20:07:47 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: campbellwireless/trips#39