Commit Graph

42 Commits

Author SHA1 Message Date
dswbx
a20b6b64a9 updated ui/client components, refactored deps 2025-01-18 15:25:12 +01:00
dswbx
db10188945 strengthened schema ensuring for system entities 2025-01-18 12:39:34 +01:00
dswbx
7ddcfc89b4 fixed auth strategy toggle, updated astro/remix 2025-01-17 18:08:23 +01:00
dswbx
b61634e261 introduced auth strategy actions to allow user creation in UI 2025-01-17 10:19:26 +01:00
dswbx
8226b644ae fix double registration of auth middleware on data routes 2025-01-16 15:45:29 +01:00
dswbx
b1a32f3705 added nextjs detection and added exception for auth redirection to also work inside stackblitz 2025-01-11 16:23:20 +01:00
dswbx
d8671355a6 exposed bknd middlewares to be used for custom routes 2025-01-11 15:45:32 +01:00
dswbx
bd4bc14282 reworked authentication and permission handling 2025-01-11 15:27:58 +01:00
dswbx
5823c2d245 fixed auth tests 2025-01-11 11:35:11 +01:00
dswbx
c732566f63 Add integration tests for auth, improve auth middleware and cookies handling 2025-01-11 10:52:31 +01:00
dswbx
0d945ab45b fixed auth middleware 2025-01-11 08:28:46 +01:00
dswbx
3bf92a8c65 Refactor asset handling and authentication logic (for node)
Updated asset path configuration and server-side logic to standardize asset serving. Introduced `shouldSkipAuth` to bypass authentication for asset requests. Added test coverage for the new asset path handling logic.
2025-01-10 20:58:03 +01:00
dswbx
e94e8d8bd1 Refactor entity handling to preserve config while overriding type
Reworked `ensureEntity` to replace entities while maintaining their configuration and allowing type adjustments. Updated tests to verify type persistence and synchronization of entity properties.
2025-01-10 15:51:47 +01:00
dswbx
a8c20d3675 Refactor module schema handling and add sync mechanism
Redesigned entity and index management with methods to streamline schema updates and added a sync flag to signal required DB syncs post-build. Enhanced test coverage and functionality for schema modifications, including support for additional fields.
2025-01-10 14:43:39 +01:00
dswbx
5bccc910a3 Merge remote-tracking branch 'origin/feat/auth-components' into release/0.5 2025-01-10 08:24:33 +01:00
dswbx
99df7f1402 Handle missing app context in permission middleware to prevent errors. 2025-01-09 11:06:40 +01:00
dswbx
47f48be514 Refactor module middleware initialization logic.
Replaced `getMiddleware` with `onServerInit` for streamlined middleware registration. Updated `AppAuth` to automatically register its authentication middleware. Added a test case to verify middleware registration. Removed redundant cookie renewal logic from `AdminController` and made related adjustments across modules.
2025-01-09 10:59:48 +01:00
dswbx
5c7bfeab8f Refactor authentication components for modularity
Replaced `LoginForm` with a more extensible `AuthForm` and `AuthScreen`, enabling support for multiple auth strategies (e.g., OAuth) and improved reusability. Updated imports, routes, and configurations accordingly.
2025-01-09 10:20:28 +01:00
dswbx
7d3d1e811f refactor: extracted auth as middleware to be added manually to endpoints 2025-01-07 13:32:50 +01:00
dswbx
ab46611839 app auth: fix missing email when creating user on seeding 2024-12-24 16:16:45 +01:00
dswbx
76da14294c unified runtime and framework adapters 2024-12-24 09:43:16 +01:00
dswbx
c1e92e503b update & fix typing, updated examples 2024-12-23 19:28:31 +01:00
dswbx
70e42a02d7 updated examples: astro, nextjs, remix, bun, node 2024-12-23 16:50:26 +01:00
dswbx
a17fd2df67 Merge pull request #32 from bknd-io/feat/optimize-seeding
Feat: optimize seeding, adding api typing support
2024-12-23 11:45:15 +01:00
dswbx
131b7dd52e Merge pull request #25 from bknd-io/feat/node-media-local
Feat: Node media local
2024-12-23 11:44:40 +01:00
dswbx
602235b372 optimized module manager seeding, added type support for new api hooks and reduced amount of dist chunks 2024-12-18 18:22:01 +01:00
dswbx
8c91dff94d updated admin to use swr hooks instead of react-query 2024-12-13 16:24:55 +01:00
dswbx
9d9aa7b7a5 added useApi and useApiQuery to work seamlessly with SWR (tbc) 2024-12-12 10:37:52 +01:00
dswbx
b7ec4982dc cli: automatically register local adapter 2024-12-10 15:50:41 +01:00
dswbx
d6978f9873 fix auth tests 2024-12-03 09:16:00 +01:00
dswbx
feeb13c053 improved astro adapter (serving api) + added documentation 2024-12-01 08:58:08 +01:00
dswbx
509d6826f0 hotfix: cookies may not be added to static assets 2024-11-28 18:07:29 +01:00
dswbx
d36c4b07e0 verified cloudflare workers + added configs where to navigate after login/logout 2024-11-26 13:26:11 +01:00
dswbx
9d896a6ab1 improved nextjs/remix adapters and docs, confirmed remix ssr working 2024-11-26 11:15:38 +01:00
dswbx
eea76ebc28 confirmed SSR support with Remix 2024-11-25 19:59:46 +01:00
dswbx
1c94777317 switched to hono/jwt to save some kb 2024-11-25 17:54:26 +01:00
dswbx
16a6a3315d added cookie to config + fixed config set endpoint 2024-11-25 16:57:12 +01:00
dswbx
824ff40133 reworked admin auth to use form and cookie + adjusted oauth to support API and cookie-based auth 2024-11-23 18:12:19 +01:00
dswbx
2433833ad0 reworked html serving, added new permissions for api/auth, updated adapters 2024-11-23 11:21:09 +01:00
dswbx
6077f0e64f added onBeforeUpdate listener + auto create a secret on auth enable 2024-11-21 16:24:33 +01:00
dswbx
c75add2058 fix auth test 2024-11-21 08:30:29 +01:00
dswbx
90f80c4280 public commit 2024-11-16 12:01:47 +01:00