Commit Graph

57 Commits

Author SHA1 Message Date
Chris
55e640f2fb Add in-memory read cache with CUD-based invalidation 2026-04-03 02:32:38 +08:00
Chris
e912d1498e Speed up auth verification with JWKS/admin token caching 2026-04-03 02:20:54 +08:00
Chris
c431fe180b Sync site-role assignments to Keycloak group role mappings 2026-04-03 02:14:01 +08:00
Chris
da08bc01ec feat: allow assigning sites directly from role page 2026-04-03 01:56:22 +08:00
Chris
d5418d47e7 chore: silence introspection fallback warning noise 2026-04-03 01:53:35 +08:00
Chris
64246984ba refactor: simplify schema names and remove provider id columns 2026-04-03 01:49:36 +08:00
Chris
e91639d6d9 perf: disable read-time sync and keep provider sync manual 2026-04-03 01:23:42 +08:00
Chris
49949498e0 fix: sync role CRUD with provider client roles 2026-04-03 01:17:13 +08:00
Chris
224f3d67bd fix: add provider column migration script for existing db 2026-04-03 01:10:13 +08:00
Chris
388a3f461c refactor: rename idp fields to provider naming 2026-04-03 01:05:01 +08:00
Chris
ce181ebf67 refactor(idp-groups): use display name as keycloak group name 2026-04-03 00:53:31 +08:00
Chris
573a75b9e3 feat(sync): keycloak as source-of-truth with auto catalog sync and token refresh 2026-04-03 00:46:46 +08:00
Chris
81085e1844 fix(auth): resolve admin groups via keycloak admin API when token lacks groups 2026-04-03 00:28:32 +08:00
Chris
fd55d90a44 fix(auth): accept keycloak group path variants for admin guard 2026-04-03 00:24:32 +08:00
Chris
0db04f9afc fix(backend): postpone annotations to avoid list() type shadowing crash 2026-04-03 00:22:00 +08:00
Chris
2f92b94f59 refactor: rebuild backend around role-site authorization model 2026-04-02 23:58:13 +08:00
Chris
0bc667847d refactor(keycloak): remove authentik naming and switch to keycloak-only paths 2026-04-01 02:01:41 +08:00
Chris
34fc865b30 fix(auth): relax keycloak audience check and auto-redirect logged-in user 2026-04-01 01:48:06 +08:00
Chris
d16722ebf8 fix(oidc): add PKCE support for keycloak login flow 2026-04-01 01:43:53 +08:00
Chris
94ae0e5a7a chore(env): use member-frontend oidc client and keep member-backend admin client 2026-04-01 01:30:44 +08:00
Chris
f582ef3850 chore(env): configure keycloak master client for local backend 2026-04-01 01:20:46 +08:00
Chris
c7ed517ed2 feat(idp): add keycloak-first support with authentik fallback 2026-04-01 00:41:38 +08:00
Chris
f6105f079d fix(login): switch frontend account login to oidc flow 2026-03-31 23:43:57 +08:00
Chris
4060ebff70 refactor(identity): rename authentik_sub to user_sub and authentik_user_id to idp_user_id 2026-03-31 22:32:48 +08:00
Chris
ed5679948b docs(api): add internal API contract and expose response schemas in swagger 2026-03-31 22:20:24 +08:00
Chris
ce8f9342de fix(internal): return correct system_key in modules list 2026-03-31 22:02:56 +08:00
Chris
85e67ae0cd refactor(internal): switch auth to api-client headers 2026-03-31 21:09:18 +08:00
Chris
cf02d9ec41 fix(member): delete authentik user when removing member 2026-03-31 21:01:15 +08:00
Chris
2b29a1a274 feat(admin): add delete APIs and UI actions for all admin resources 2026-03-31 20:58:20 +08:00
Chris
556fc8d5cb fix(api-clients): fallback api-key hashing without argon2; show site/module parent display names 2026-03-31 20:35:04 +08:00
Chris
3fe5ce4ce7 feat(admin): add api client management UI and backend CRUD/rotate endpoints 2026-03-30 23:28:27 +08:00
Chris
75f9f28588 feat(members): split username/display_name, sync updates to authentik, add password reset API and refresh docs 2026-03-30 22:15:41 +08:00
Chris
8ed50cdcc6 refactor(auth): use group-only admin access and remove admin api-key flow from frontend/admin routes 2026-03-30 21:39:43 +08:00
Chris
0e17997e66 feat(security): enforce admin allowlist guard on admin APIs and attach bearer for admin client 2026-03-30 21:25:57 +08:00
Chris
0cd863f9c2 fix(module-key): make module keys standalone MD format with system_key relation 2026-03-30 20:02:17 +08:00
Chris
c4266b7da5 feat(keys): auto-generate entity keys and remove manual key input from admin create forms 2026-03-30 19:52:00 +08:00
Chris
357ebad821 chore(db): rebuild init schema with drop-recreate and group-centric constraints 2026-03-30 19:42:05 +08:00
Chris
61cab48fca feat(admin): implement group-centric relations and system/module/company linkage views 2026-03-30 19:38:49 +08:00
Chris
35ffff1d19 feat(flow): unify member-group-permission admin workflow and docs 2026-03-30 03:54:22 +08:00
Chris
cc9ad16311 feat(flow): auto-resolve authentik sub and improve admin dropdown UX 2026-03-30 03:33:50 +08:00
Chris
2f97f45795 feat(admin): add edit flows for all catalogs and member authentik sync 2026-03-30 03:25:53 +08:00
Chris
58ea76f8b6 fix(auth): correct userinfo endpoint fallback for authentik profile enrichment 2026-03-30 03:13:29 +08:00
Chris
5cc322f783 fix: finalize unified schema and correct permission snapshot mapping 2026-03-30 02:22:27 +08:00
Chris
4ea80fa748 chore: consolidate full database schema into single init_schema.sql 2026-03-30 02:14:26 +08:00
Chris
602c5443ad refactor: align backend with company-site-member schema and system-level RBAC groups 2026-03-30 01:59:50 +08:00
Chris
0f0b197b32 feat: add organization and member management APIs for admin and internal use 2026-03-30 01:23:02 +08:00
Chris
f00b8cefaa fix: enrich me profile via userinfo and add org-member management plan 2026-03-30 01:14:02 +08:00
Chris
a170f0a681 fix: switch frontend login to authentik auth-code flow 2026-03-30 01:04:28 +08:00
Chris
5e46c58dd4 fix: allow login by email via authentik username resolution 2026-03-30 00:54:15 +08:00
Chris
8f06f75cca feat: add username-password login flow via authentik token endpoint 2026-03-30 00:52:09 +08:00