@owlmeans/server-iam 0.1.18-rc.23 → 0.1.18-rc.25
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
|
@@ -20,15 +20,19 @@ bun add @owlmeans/server-iam@^0.1.18-rc.20
|
|
|
20
20
|
```typescript
|
|
21
21
|
import { appendIam, makeIamGate } from '@owlmeans/server-iam'
|
|
22
22
|
import { IAM_GATE } from '@owlmeans/server-iam'
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
23
|
+
import { contract, protocol, typed } from '@owlmeans/entrypoint'
|
|
24
|
+
import { route } from '@owlmeans/route'
|
|
25
25
|
import { DEFAULT_GUARD } from '@owlmeans/auth-common'
|
|
26
26
|
|
|
27
27
|
// Wire IAM into a server context
|
|
28
28
|
appendIam(context)
|
|
29
29
|
|
|
30
|
-
// Gate
|
|
31
|
-
|
|
30
|
+
// Gate a protocol with a permission check
|
|
31
|
+
protocol(
|
|
32
|
+
route('users', '/users'),
|
|
33
|
+
contract(typed<User[]>()),
|
|
34
|
+
{ guards: DEFAULT_GUARD, gate: { alias: IAM_GATE, params: ['manage-users@{entity}'] } },
|
|
35
|
+
)
|
|
32
36
|
```
|
|
33
37
|
|
|
34
38
|
Requires `@owlmeans/oidc` OIDC shared config and a running IAM provider configured via `@owlmeans/server-oidc-rp`.
|
|
@@ -41,7 +45,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
41
45
|
your project's skill store (`.agents/skills/`):
|
|
42
46
|
|
|
43
47
|
```sh
|
|
44
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.
|
|
48
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.16
|
|
45
49
|
```
|
|
46
50
|
|
|
47
51
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/server-iam",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-09-
|
|
4
|
+
"version": "0.1.18-rc.25",
|
|
5
|
+
"generatedAt": "2026-09-12T12:32:46.369Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -8,7 +8,7 @@ metadata:
|
|
|
8
8
|
|
|
9
9
|
# Using `@owlmeans/server-iam`
|
|
10
10
|
|
|
11
|
-
**Install:** `"@owlmeans/server-iam": "^0.1.18-rc.
|
|
11
|
+
**Install:** `"@owlmeans/server-iam": "^0.1.18-rc.25"` in `dependencies`
|
|
12
12
|
|
|
13
13
|
Boilerplate-less server-side consumer of the OwlMeans IAM. One call wires the OIDC RP stack and the
|
|
14
14
|
IAM gate; the consumer never knows which IAM backend (Keycloak or integrated) is active.
|
|
@@ -85,7 +85,7 @@ simply skipped rather than the whole audit being lost.
|
|
|
85
85
|
|
|
86
86
|
```ts
|
|
87
87
|
// module declaration
|
|
88
|
-
gate
|
|
88
|
+
{ gate: { alias: OIDC_GATE, params: ['department--modify@depId'] } }
|
|
89
89
|
|
|
90
90
|
// or imperative
|
|
91
91
|
await ctx.service<GateService>(OIDC_GATE).assert(req, res, ['article--modify'])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/server-iam",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.25",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@owlmeans/auth": "^0.1.18-rc.
|
|
26
|
-
"@owlmeans/context": "^0.1.18-rc.
|
|
27
|
-
"@owlmeans/entrypoint": "^0.1.18-rc.
|
|
28
|
-
"@owlmeans/iam": "^0.1.18-rc.
|
|
29
|
-
"@owlmeans/oidc": "^0.1.18-rc.
|
|
30
|
-
"@owlmeans/server-context": "^0.1.18-rc.
|
|
31
|
-
"@owlmeans/server-oidc-rp": "^0.1.18-rc.
|
|
25
|
+
"@owlmeans/auth": "^0.1.18-rc.13",
|
|
26
|
+
"@owlmeans/context": "^0.1.18-rc.12",
|
|
27
|
+
"@owlmeans/entrypoint": "^0.1.18-rc.15",
|
|
28
|
+
"@owlmeans/iam": "^0.1.18-rc.20",
|
|
29
|
+
"@owlmeans/oidc": "^0.1.18-rc.25",
|
|
30
|
+
"@owlmeans/server-context": "^0.1.18-rc.16",
|
|
31
|
+
"@owlmeans/server-oidc-rp": "^0.1.18-rc.22"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@owlmeans/dep-config": "workspace:*",
|