feat(authz): add database-backed PermissionStore

Adds dbPermissionStore/ensureAuthzTables/authzMigrationSql, backed by
_wrn_authz_assignment and _wrn_authz_grant tables, plus a ./db subpath
export. Passes the identical 19-test store-conformance suite the memory
adapter passes, including tenant-scope isolation.
This commit is contained in:
2026-08-04 20:22:31 +05:30
parent 218f5e2dd6
commit 3fa3fce5df
6 changed files with 153 additions and 1 deletions
+1
View File
@@ -32,6 +32,7 @@
"@wrnexus/jwt": ["./packages/jwt/src/index.ts"],
"@wrnexus/oauth": ["./packages/oauth/src/index.ts"],
"@wrnexus/authz": ["./packages/authz/src/index.ts"],
"@wrnexus/authz/db": ["./packages/authz/src/db.ts"],
"@wrnexus/helpers": ["./packages/helpers/src/index.ts"],
"@wrnexus/encryption": ["./packages/encryption/src/index.ts"],
"@wrnexus/pubsub": ["./packages/pubsub/src/index.ts"],