Commit graph

14 commits

Author SHA1 Message Date
Viktor Barzin
a8b7eace48
Add passkey (WebAuthn) authentication with self-registration
Enable users to sign up and sign in using passkeys (biometrics/security
keys) without needing a manually-created Authentik account. The existing
SSO login remains as an alternative.

Backend:
- Add WebAuthn registration/authentication endpoints via py-webauthn
- Issue HS256 JWTs for passkey users, with Redis-backed challenge storage
- Dual JWT verification in auth middleware (issuer-based routing: passkey
  HS256 vs Authentik RS256)
- PasskeyCredential model + migration making user.password nullable
- UserRepository with full CRUD for users and credentials

Frontend:
- AuthUser type abstraction unifying OIDC and passkey users
- Passkey service using @simplewebauthn/browser for WebAuthn ceremonies
- LoginModal redesigned with Sign In / Sign Up tabs
- Type migration from oidc-client-ts User to AuthUser across all services
  and components
2026-02-07 00:34:47 +00:00
Viktor Barzin
d205d15c74 Add services layer, tests, streaming UI, and cleanup legacy code 2026-02-06 20:55:10 +00:00
Viktor Barzin
1c8c3e4657
add alembic mutation for logitute name 2026-01-28 21:00:46 +00:00
Kadir
0801aaf200
More ruff fixes (#2)
* adding ruff auto check for pull requests as well as fixing all ruff errors

* More ruff fixes: forgot half of the ruff checks

Forgot to do a git add all :D

---------

Co-authored-by: Kadir <git@k8n.dev>
2025-09-14 19:44:03 +01:00
Kadir
b1e0a414cf Used ruff to cleanup
I hope it just works right as I cannot test things if they work
2025-09-14 19:02:30 +01:00
Viktor Barzin
5adffc8dcf
make a few columns in the listing model indices to help with search 2025-06-30 22:57:41 +00:00
Viktor Barzin
efe3248c07
migrate to using db connection string from env 2025-06-22 21:16:55 +00:00
Viktor Barzin
4ad04775c9
add user auth boilerplate 2025-06-11 21:08:48 +00:00
Viktor Barzin
296a4e7603
bugfix fetching transactions to make use of db cache 2025-06-09 21:45:29 +00:00
Viktor Barzin
80c335ba04
migrate routing command to use the models and store data there 2025-06-08 11:45:05 +00:00
Viktor Barzin
ba87d07cd2
migrate dump images command to use model listings 2025-06-07 13:56:00 +00:00
Viktor Barzin
b7a2ea75aa
add json field to store any additional blob of data that may be missing; also populate db when dumping listings 2025-06-06 19:57:50 +00:00
Viktor Barzin
8b2025e700
add command to dump existing listing from fs to db 2025-06-04 22:03:55 +00:00
Viktor Barzin
0d3393ed94
add sqlmodel + alembic + setup models skeleton to slowly enable transition towards a db 2025-06-03 20:01:30 +00:00