Skip to content

Commit d9cb38c

Browse files
authored
Merge pull request #418 from objectstack-ai/copilot/add-plugin-auth
2 parents d16fbd5 + 1ac71f5 commit d9cb38c

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

ROADMAP.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ObjectQL — 2026 Roadmap
22

3-
> Created: 2026-02-08 | Last Updated: 2026-02-20 | Status: **Active**
3+
> Created: 2026-02-08 | Last Updated: 2026-03-20 | Status: **Active**
44
> Current Version: **4.2.2** (31 workspace packages; exceptions: root 4.2.0)
55
> Runtime: `@objectstack/cli` v3.2.6 (Kernel pattern) — `@objectql/server` removed, `packages/runtime/` removed.
66
> @objectstack Platform: **v3.2.6**
@@ -783,7 +783,7 @@ Priority tasks following the `@objectstack` v3.2.6 upgrade:
783783
| # | Task | Priority | Status | Description |
784784
|---|------|----------|--------|-------------|
785785
| 1 | Fix `plugin-formula` integration tests | High | ✅ Fixed | Previously 6 pre-existing test failures — now all pass (66/66 test tasks, including plugin-formula). |
786-
| 2 | Re-enable `AuthPlugin` | Medium | 🔴 Open | Disabled due to camelCase field names (`createdAt`, `updatedAt`, `emailVerified`) violating ObjectQL snake_case spec. Coordinate with `@objectstack/plugin-auth` upstream or add field name normalization layer. |
786+
| 2 | Re-enable `AuthPlugin` | Medium | ✅ Done | Enabled `AuthPlugin` in `objectstack.config.ts` with env-based `AUTH_SECRET` and localhost trusted origins. |
787787
| 3 | Align `@objectql/types` with `@objectstack/spec` v3.2.6 Zod v4 schemas | High | ✅ Done | `z.infer<>` type derivation compiles correctly against Zod v4 schema exports in `@objectstack/spec@3.2.6`. Verified via 38/38 build tasks passing. |
788788
| 4 | Core bridge class stabilization | Medium | ✅ Done | `app.ts` bridge class — all `registerObject`, `getObject`, `getConfigs`, `removePackage` overrides align with `@objectstack/objectql@3.2.6` API surface. Build verified. |
789789
| 5 | Bump `@objectql/*` packages to **4.3.0** | Low | 🟡 Next | Release patch with `@objectstack` v3.2.6 compatibility via Changesets. |

objectstack.config.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,10 @@ export default {
7979
new ObjectQLSecurityPlugin({
8080
enableAudit: false
8181
}),
82-
// Temporarily disabled due to field naming validation errors (camelCase vs snake_case)
83-
// The AuthPlugin uses camelCase field names (createdAt, updatedAt, emailVerified)
84-
// which violate the ObjectQL spec requiring snake_case
85-
// new AuthPlugin({
86-
// basePath: '/api/v1/auth'
87-
// }),
82+
new AuthPlugin({
83+
secret: process.env.AUTH_SECRET || 'objectql-dev-secret-change-me-in-production',
84+
trustedOrigins: ['http://localhost:*'],
85+
}),
8886
// ValidatorPlugin is managed by ObjectQLPlugin now
8987
// new ValidatorPlugin(),
9088
new GraphQLPlugin({

0 commit comments

Comments
 (0)