@owlmeans/server-auth 0.1.16-rc.0 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -71,10 +71,9 @@ Resource alias for the nonce replay-prevention cache.
|
|
|
71
71
|
<!-- owlmeans:agent-guidance:start -->
|
|
72
72
|
## Agent guidance
|
|
73
73
|
|
|
74
|
-
This package ships embedded
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
(`.claude/skills/` and `.github/instructions/`):
|
|
74
|
+
This package ships embedded agent skills under `agent-meta/`. After installing your
|
|
75
|
+
`@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
|
|
76
|
+
your project's skill store (`.agents/skills/`):
|
|
78
77
|
|
|
79
78
|
```sh
|
|
80
79
|
npx @owlmeans/agent-skills
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion":
|
|
2
|
+
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/server-auth",
|
|
4
|
-
"version": "0.1.16
|
|
5
|
-
"generatedAt": "2026-08-
|
|
4
|
+
"version": "0.1.16",
|
|
5
|
+
"generatedAt": "2026-08-14T10:14:48.849Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -10,14 +10,7 @@
|
|
|
10
10
|
"name": "server-auth",
|
|
11
11
|
"category": "package-specific",
|
|
12
12
|
"file": "skills/server-auth/SKILL.md",
|
|
13
|
-
"canonicalPath": ".
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"kind": "instruction",
|
|
17
|
-
"name": "server-auth",
|
|
18
|
-
"category": "package-specific",
|
|
19
|
-
"file": "instructions/server-auth.instructions.md",
|
|
20
|
-
"canonicalPath": ".github/instructions/server-auth.instructions.md"
|
|
13
|
+
"canonicalPath": ".agents/skills/server-auth/SKILL.md"
|
|
21
14
|
}
|
|
22
15
|
]
|
|
23
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/server-auth",
|
|
3
|
-
"version": "0.1.16
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -37,29 +37,29 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@noble/hashes": "^1.5.0",
|
|
40
|
-
"@owlmeans/api": "^0.1.16
|
|
41
|
-
"@owlmeans/api-config-server": "^0.1.16
|
|
42
|
-
"@owlmeans/auth": "^0.1.16
|
|
43
|
-
"@owlmeans/auth-common": "^0.1.16
|
|
44
|
-
"@owlmeans/basic-envelope": "^0.1.16
|
|
45
|
-
"@owlmeans/basic-ids": "^0.1.16
|
|
46
|
-
"@owlmeans/basic-keys": "^0.1.16
|
|
47
|
-
"@owlmeans/client-config": "^0.1.16
|
|
48
|
-
"@owlmeans/client-entrypoint": "^0.1.16
|
|
49
|
-
"@owlmeans/config": "^0.1.16
|
|
50
|
-
"@owlmeans/context": "^0.1.16
|
|
51
|
-
"@owlmeans/kluster": "^0.1.16
|
|
52
|
-
"@owlmeans/entrypoint": "^0.1.16
|
|
53
|
-
"@owlmeans/redis-resource": "^0.1.16
|
|
54
|
-
"@owlmeans/resource": "^0.1.16
|
|
55
|
-
"@owlmeans/route": "^0.1.16
|
|
56
|
-
"@owlmeans/server-api": "^0.1.16
|
|
57
|
-
"@owlmeans/server-context": "^0.1.16
|
|
58
|
-
"@owlmeans/server-entrypoint": "^0.1.16
|
|
59
|
-
"@owlmeans/server-route": "^0.1.16
|
|
60
|
-
"@owlmeans/server-socket": "^0.1.16
|
|
61
|
-
"@owlmeans/socket": "^0.1.16
|
|
62
|
-
"@owlmeans/static-resource": "^0.1.16
|
|
40
|
+
"@owlmeans/api": "^0.1.16",
|
|
41
|
+
"@owlmeans/api-config-server": "^0.1.16",
|
|
42
|
+
"@owlmeans/auth": "^0.1.16",
|
|
43
|
+
"@owlmeans/auth-common": "^0.1.16",
|
|
44
|
+
"@owlmeans/basic-envelope": "^0.1.16",
|
|
45
|
+
"@owlmeans/basic-ids": "^0.1.16",
|
|
46
|
+
"@owlmeans/basic-keys": "^0.1.16",
|
|
47
|
+
"@owlmeans/client-config": "^0.1.16",
|
|
48
|
+
"@owlmeans/client-entrypoint": "^0.1.16",
|
|
49
|
+
"@owlmeans/config": "^0.1.16",
|
|
50
|
+
"@owlmeans/context": "^0.1.16",
|
|
51
|
+
"@owlmeans/kluster": "^0.1.16",
|
|
52
|
+
"@owlmeans/entrypoint": "^0.1.16",
|
|
53
|
+
"@owlmeans/redis-resource": "^0.1.16",
|
|
54
|
+
"@owlmeans/resource": "^0.1.16",
|
|
55
|
+
"@owlmeans/route": "^0.1.16",
|
|
56
|
+
"@owlmeans/server-api": "^0.1.16",
|
|
57
|
+
"@owlmeans/server-context": "^0.1.16",
|
|
58
|
+
"@owlmeans/server-entrypoint": "^0.1.16",
|
|
59
|
+
"@owlmeans/server-route": "^0.1.16",
|
|
60
|
+
"@owlmeans/server-socket": "^0.1.16",
|
|
61
|
+
"@owlmeans/socket": "^0.1.16",
|
|
62
|
+
"@owlmeans/static-resource": "^0.1.16",
|
|
63
63
|
"@scure/base": "^1.1.9"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@owlmeans/dep-config": "workspace:*",
|
|
70
|
-
"@owlmeans/test-auth": "^0.1.16
|
|
70
|
+
"@owlmeans/test-auth": "^0.1.16",
|
|
71
71
|
"@types/bun": "^1.3.14",
|
|
72
72
|
"@types/node": "^26.1.0",
|
|
73
73
|
"nodemon": "^3.1.14",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "How to use @owlmeans/server-auth — server-side authentication manager, AUTH_API alias, setupAuthServiceModules() to wire auth modules."
|
|
3
|
-
applyTo: "**/*.ts, **/*.tsx"
|
|
4
|
-
---
|
|
5
|
-
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
-
|
|
7
|
-
# @owlmeans/server-auth
|
|
8
|
-
|
|
9
|
-
**Layer:** Server
|
|
10
|
-
**Install:** `"@owlmeans/server-auth": "^0.1.16-rc.0"` in `dependencies`
|
|
11
|
-
|
|
12
|
-
## Key Exports
|
|
13
|
-
|
|
14
|
-
| Export | Description |
|
|
15
|
-
|--------|-------------|
|
|
16
|
-
| `setupAuthServiceModules(modules, alias)` | Wire auth modules into app modules |
|
|
17
|
-
| `AUTH_API` (re-exported) | Auth service alias |
|
|
18
|
-
| Auth service factory | Backend auth manager |
|
|
19
|
-
| Plugin types | Pluggable auth verifiers |
|
|
20
|
-
|
|
21
|
-
## Subpath Exports
|
|
22
|
-
|
|
23
|
-
- `./manager`, `./manager/plugins`
|
|
24
|
-
|
|
25
|
-
## Usage
|
|
26
|
-
|
|
27
|
-
```typescript
|
|
28
|
-
import { setupAuthServiceModules } from '@owlmeans/server-auth'
|
|
29
|
-
import { AUTH_API } from '@owlmeans/auth-common'
|
|
30
|
-
setupAuthServiceModules(appModules, AUTH_API)
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Product-Viable Usage Notes
|
|
34
|
-
|
|
35
|
-
- Backend context registers `appendAuthService(context)` before identity resources and product-specific gate services.
|
|
36
|
-
- `AUTH_CACHE` must be registered as a Redis resource when the backend context does not rely on the default `server-app` setup.
|
|
37
|
-
- `server-auth` verifies bearer tokens and populates `req.auth`; it does not decide product ownership or permissions by itself.
|
|
38
|
-
- Pair this package with `@owlmeans/server-auth-identity` when an external provider such as Google should map into local account/profile/credentials records.
|
|
39
|
-
- Pair it with `@owlmeans/entrypoint` gates for authorization, and keep handler-level `entityId` checks as a second line of defense.
|
|
40
|
-
|
|
41
|
-
## Depends On
|
|
42
|
-
|
|
43
|
-
- `@owlmeans/auth`, `@owlmeans/auth-common`, `@owlmeans/server-entrypoint`, `@owlmeans/server-context`, `@owlmeans/basic-keys`
|