Skip to content

feat(auth): add login v1 (JWT, interceptor, admin bootstrap, frontend) - #83

Merged
lzq986 merged 1 commit into
mainfrom
feat/login-v1
Aug 7, 2026
Merged

feat(auth): add login v1 (JWT, interceptor, admin bootstrap, frontend)#83
lzq986 merged 1 commit into
mainfrom
feat/login-v1

Conversation

@lzq986

@lzq986 lzq986 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Add username/password login with stateless JWT (HS256) and a request interceptor gating /api/** (login excluded). Introduce SysUser entity/mapper/SQL, Pbkdf2 password hashing via the JDK stdlib (no new dep), AdminBootstrapRunner that creates the initial admin when sys_user is empty (fail-closed if ADMIN_INIT_PASSWORD is unset), and /api/auth/login|me|change-password endpoints. Add a frontend login page with token storage in the user store and header logout. No role or permission checks yet — the permission round follows.

Add username/password login with stateless JWT (HS256) and a request
interceptor gating /api/** (login excluded). Introduce SysUser
entity/mapper/SQL, Pbkdf2 password hashing via the JDK stdlib (no new
dep), AdminBootstrapRunner that creates the initial admin when sys_user
is empty (fail-closed if ADMIN_INIT_PASSWORD is unset), and
/api/auth/login|me|change-password endpoints. Add a frontend login page
with token storage in the user store and header logout. No role or
permission checks yet — the permission round follows.
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Thank you for your contribution! We will review your request as soon as possible. Please review the code yourself using ponytail https://github.com/DietrichGebert/ponytail.

@lzq986
lzq986 merged commit e2579bb into main Aug 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant