LeoVasanko
b3cb540098
Implement database file locking for extra safety.
2026-02-19 00:01:49 +00:00
LeoVasanko
22ba7231b1
Implement read-only database load at startup for CLI to get its settings. Full opening only when server has started.
2026-02-18 23:46:18 +00:00
LeoVasanko
9a9979fb62
Add missing new file.
2026-02-18 23:45:22 +00:00
LeoVasanko
9b7855c0af
Faster and simplified hash_secret() that directly produces urlsafe entries.
2026-02-18 23:02:36 +00:00
LeoVasanko
dfc4c76d43
Fix static asset serving in devserver mode.
2026-02-18 22:19:18 +00:00
LeoVasanko
f26ac8f33b
Simplified My Profile authentication flows, fixed some UX issues with reauth cancelled/accepted leading to incorrect states.
2026-02-18 19:04:02 +00:00
LeoVasanko
880ced3b8c
Always load user's theme from API if available, and update the localStorage cache. Previously in various situations the old cached value was being used instead, leading to inconsistent theming or wrong themeselector readout.
2026-02-18 18:35:41 +00:00
LeoVasanko
fa1e69d58b
Imports to top of file.
2026-02-18 17:47:57 +00:00
LeoVasanko
39000ef831
Remove PASKIA_SITE_URL env, use PASKIA_VITE_URL instead, moving the correct site URL determination to paskia CLI directly. This resolves devserver issues where VITE URL was reported as the external site URL instead of configured auth-host or origins. Main CLI still simplified. Bump deps versions and cleanup pyproject.toml.
2026-02-18 17:21:03 +00:00
LeoVasanko
49119fac81
Fix HostProfile user properties access.
2026-02-18 03:47:08 +00:00
LeoVasanko
68dccc1378
OAuth2 OpenID Connect provider support, API and DB refactoring ( #3 )
...
Allows Paskia to authenticate the user to a client site.
- User friendly client registration flow on the admin app
- Redirect-based authentication flow (per spec)
- Backchannel logout both ways to keep sessions synchronized
- Groups integrated with Paskia's permission system
- Adds email, preferred username and telephone fields on user profile
- All new user basic info layout to show the new information, better looks
- API and DB structures redesigned
- Various unrelated fixes to theming and layout
2026-02-18 02:40:27 +00:00
LeoVasanko
c0aba07326
Show credential UUID in logging as they are, no prettifying.
2026-02-17 18:32:47 +00:00
LeoVasanko
7f52276c23
Use samesite=strict because we don't need the cookie for page loads.
2026-02-13 20:22:05 +00:00
LeoVasanko
c1f8020f6b
API cleanup, using msgspec structs rather than raw responses. Admin app cleanup, better breadcrumbs.
2026-02-13 20:09:41 +00:00
LeoVasanko
423abb0d1b
Move CLI entry point to main module even though it runs the FastAPI app from a submodule.
2026-02-13 16:26:05 +00:00
LeoVasanko
ef7a6c8011
Upgrade fastapi-vue-setup 1.0.2
2026-02-11 21:33:21 +00:00
LeoVasanko
97064f7bc7
Remove unused CLI bootstrap entry point.
2026-02-11 19:36:06 +00:00
LeoVasanko
fc0541762e
Add version indication and link to our site on profile page (bottom right corner).
2026-02-11 01:36:58 +00:00
LeoVasanko
a944224027
Inline get_config, rewrite update_config, DB init Config and rp_id defaults changed.
2026-02-10 23:01:02 +00:00
LeoVasanko
aef0e0cb44
ResetToken.hash(phrase) added avoiding code duplication.
2026-02-10 22:56:49 +00:00
LeoVasanko
d41cffc03e
Remove remaining DB getter functions, inline at call site and add ResetToken.by_passphrase().
2026-02-10 22:48:31 +00:00
LeoVasanko
bad709a3ab
Remove unnecessary odd getter from db.operations.
2026-02-10 22:37:57 +00:00
LeoVasanko
1cfde06de9
Refactor DB lifecycle functions init and cleanup to separate db.lifecycle module.
2026-02-10 22:28:38 +00:00
LeoVasanko
b0b36e88b1
CRUD store and delete on the DB classes directly.
2026-02-10 22:19:02 +00:00
LeoVasanko
2237e6b5e9
Db operations: bootstrap separated to its own module.
2026-02-10 22:08:54 +00:00
LeoVasanko
c2ea01e6d9
Use strictly same now timestamp over a transaction, even for UUIDv7s generated.
2026-02-10 21:45:09 +00:00
LeoVasanko
8b6bdd0f9c
Calculate session expiry times in operations, using a common now timestamp for everything.
2026-02-10 21:35:56 +00:00
LeoVasanko
3ca784dc3c
Set last seen and increment visits during registration, not only on authentication.
2026-02-10 21:25:20 +00:00
LeoVasanko
16ab111a89
Make config part of bootstrap.
2026-02-09 18:33:29 +00:00
LeoVasanko
d826146932
Improved CLI logging of DB transactions.
2026-02-09 18:28:24 +00:00
LeoVasanko
fda9b2545e
Fix save config running before bootstrap for new databases.
2026-02-09 18:07:51 +00:00
LeoVasanko
0cf551cb28
Cleaner database error handling and fixes.
2026-02-09 17:55:03 +00:00
LeoVasanko
632230d05c
Minor fixes to config handling.
2026-02-09 17:37:10 +00:00
LeoVasanko
fb71ea1220
Storing config on database to simplify reloads by CLI.
2026-02-09 17:00:40 +00:00
LeoVasanko
25283eba9b
Change database name to (rp-id).paskiadb (previously paskia.jsonl). Validate the rp-id in passkey init.
2026-02-09 16:42:12 +00:00
LeoVasanko
6a217978d6
Upgrade fastapi-vue-setup.
2026-02-09 16:29:24 +00:00
LeoVasanko
8fc03ade04
Remove the reset subcommand that was broken and unnecessary.
2026-02-05 21:53:30 +00:00
LeoVasanko
5deb57435b
Remove paskia-migration script (SQL no longer supported).
2026-02-05 19:32:18 +00:00
LeoVasanko
3469e6fa3f
ruff check
2026-02-05 19:21:03 +00:00
LeoVasanko
c3df6c318c
Change host normalization to remove port numbers - sessions are per host, cookies don't respect port numbers.
2026-02-05 19:04:40 +00:00
LeoVasanko
70c682b539
Improved client IP and UA handling.
2026-02-05 17:33:08 +00:00
LeoVasanko
291a665e21
Improved UI feedback on registration link creation.
2026-02-05 14:26:11 +00:00
LeoVasanko
af5a48f565
API/DB cleanup for flat URLs that don't include org where users etc. are referred to. Implement user deletion in admin app and API, UI improvement. Reset token DB factory function revised to create passphrase and key internally. Removed unneeded functions and args, using update_user_role instead of a separate deleted _in_organization function.
2026-02-05 13:57:07 +00:00
LeoVasanko
632278d4ce
Change CLI to use --listen rather than positional hostport argument. Fix listening on all interfaces (runs lifespan twice, which needs to be OK). Update README with various CLI changes and more.
2026-02-05 02:54:07 +00:00
LeoVasanko
3faaeee7be
Add missing __init__ that was causing ModuleFoundError trying to import paskia.util.
2026-02-05 02:33:05 +00:00
LeoVasanko
0f51f8501d
Console startup box themed as well.
2026-01-31 00:30:14 +00:00
LeoVasanko
a7e6eb7341
Missing theme file. Added favicon.
2026-01-31 00:25:38 +00:00
LeoVasanko
1800dc12ae
Light/dark selection in user profile, if set this is preferred on the whole system, together with app overrides (the first one on the URL wins).
2026-01-30 23:31:06 +00:00
LeoVasanko
2ee8ddf1d1
Log proper action for delete_session depending on what function it performs: logout, delete_session (user's own) or admin:delete_session.
2026-01-29 22:44:22 +00:00
LeoVasanko
d58b3742b1
Smarter change logging on console, properly display newly created items (not available via jsondiffs).
2026-01-29 22:39:16 +00:00