@owlmeans/server-auth 0.1.18-rc.50 → 0.1.18-rc.51

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
@@ -13,7 +13,7 @@ account/profile records `@owlmeans/server-auth-identity`, and the browser side `
13
13
  ## Installation
14
14
 
15
15
  ```bash
16
- bun add @owlmeans/server-auth@^0.1.18-rc.50
16
+ bun add @owlmeans/server-auth@^0.1.18-rc.51
17
17
  ```
18
18
 
19
19
  ## Concepts
@@ -222,7 +222,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
222
222
  your project's skill store (`.agents/skills/`):
223
223
 
224
224
  ```sh
225
- npx @owlmeans/agent-skills@^0.1.18-rc.45
225
+ npx @owlmeans/agent-skills@^0.1.18-rc.46
226
226
  ```
227
227
 
228
228
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/server-auth",
4
- "version": "0.1.18-rc.50",
5
- "generatedAt": "2026-10-01T23:27:48.729Z",
4
+ "version": "0.1.18-rc.51",
5
+ "generatedAt": "2026-10-03T11:19:50.779Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/server-auth
9
9
 
10
10
  **Layer:** Server
11
- **Install:** `"@owlmeans/server-auth": "^0.1.18-rc.50"` in `dependencies`
11
+ **Install:** `"@owlmeans/server-auth": "^0.1.18-rc.51"` in `dependencies`
12
12
 
13
13
  Two halves, deliberately split by subpath:
14
14
 
@@ -30,7 +30,6 @@ An ordinary service imports the root. Only the auth manager imports `./manager`.
30
30
  | `AUTH_CACHE` | `'auth-cache'` — the single-use challenge store |
31
31
  | `AUTH_SRV_KEY` | `'auth-service'` — the TRUSTED record whose key signs credential envelopes |
32
32
  | `AUTHEN_TIMEFRAME` | `15 * 60 * 1000` — challenge lifetime and anti-replay window, in ms |
33
- | `AUTH_SESSION_MANAGER` / `appendMemoryAuthSessionManager` | Seven-day session registry contract and the process-local default; use the Redis implementation from `@owlmeans/server-auth-session` for a shared authority |
34
33
  | `AuthService`, `AuthServiceAppend`, `AuthSpent` | Types |
35
34
  | `makeRelyModel`, `makeProviderRely`, `makeConsumerRely`, `RelyOptions` | The rely (wallet handshake) models |
36
35
 
@@ -108,7 +107,8 @@ registerPlugin('my-method', context => ({
108
107
  context with `AUTH_SESSION_MANAGER`, the guard rejects an absent, expired, pending or revoked
109
108
  session and re-signs fresh profile claims after a registry revision. Registry or identity-store
110
109
  failure is `AuthUnavailable` (503), never a false 401/logout.
111
- - `appendAuthService` installs the memory session manager only as a single-process default. A
110
+ - The session registry (`AUTH_SESSION_MANAGER`) is `@owlmeans/server-auth-session`'s, not exported
111
+ here; `appendAuthService` installs its memory manager only as a single-process default. A
112
112
  central or multi-replica issuer registers `appendRedisAuthSessionManager(context)` before it;
113
113
  the manager is the authority that fences, refreshes or revokes an organization profile's sessions.
114
114
  - The manager canonicalizes the organization entity: whatever slug (current, retired, or the frozen
@@ -52,8 +52,8 @@ Options:
52
52
  front-end signs with. Pick aliases whose private keys you actually have (e.g. in `.env.dev.secrets`).
53
53
  - `resolveUser` — `(userId, context, { register }) => Promise<SupervisorUserResolution>`. Default:
54
54
  trust the id as-is (`{ userId }`). Wire it to `@owlmeans/server-auth-identity`'s
55
- `IdentityLinkingService` (`getLinkedProfile` / `linkProfile`) to find-or-create a real profile and
56
- organization entity. `SupervisorUserResolution` is `{ userId }` plus optional `profileId`,
55
+ `IdentityLinkingService` (`getLinkedProfile` / `linkProfile`) to find-or-create the person's
56
+ account and the deployment's own row (a new address registers a personal organization). `SupervisorUserResolution` is `{ userId }` plus optional `profileId`,
57
57
  `entitySlug`, `role` and `scopes` — the organization value is a SLUG, the renameable public name
58
58
  that a token carries, never the stable `entityId`. `profileId` defaults to `userId`, `scopes` to
59
59
  the credential's own or `[ALL_SCOPES]`, and `role` to `AuthRole.User`.
@@ -1,9 +1,3 @@
1
1
  /** Server entrypoints for the full authentication manager. */
2
- export declare const entrypoints: (import("@owlmeans/server-entrypoint").ServerProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").OpenRequest, import("@owlmeans/entrypoint").OpenValue>> | import("@owlmeans/server-entrypoint").ServerProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
3
- body: import("@owlmeans/auth").AllowanceRequest;
4
- }, import("@owlmeans/auth").AllowanceResponse>> | import("@owlmeans/server-entrypoint").ServerProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
5
- body: import("@owlmeans/auth").AuthCredentials;
6
- }, import("@owlmeans/auth").AuthToken>> | import("@owlmeans/server-entrypoint").ServerProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
7
- query: Partial<import("@owlmeans/auth").AuthToken>;
8
- }, undefined>>)[];
2
+ export declare const entrypoints: import("@owlmeans/server-entrypoint").ServerProtocolEntrypoint<any>[];
9
3
  //# sourceMappingURL=entrypoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../../src/manager/entrypoints.ts"],"names":[],"mappings":"AAiBA,8DAA8D;AAC9D,eAAO,MAAM,WAAW;;;;;;iBAOvB,CAAA"}
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../../src/manager/entrypoints.ts"],"names":[],"mappings":"AAiBA,8DAA8D;AAC9D,eAAO,MAAM,WAAW,uEAOvB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/server-auth",
3
- "version": "0.1.18-rc.50",
3
+ "version": "0.1.18-rc.51",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -37,30 +37,30 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@noble/hashes": "^1.5.0",
40
- "@owlmeans/api": "^0.1.18-rc.43",
41
- "@owlmeans/api-config-server": "^0.1.18-rc.47",
42
- "@owlmeans/auth": "^0.1.18-rc.37",
43
- "@owlmeans/auth-common": "^0.1.18-rc.43",
44
- "@owlmeans/basic-envelope": "^0.1.18-rc.42",
40
+ "@owlmeans/api": "^0.1.18-rc.44",
41
+ "@owlmeans/api-config-server": "^0.1.18-rc.48",
42
+ "@owlmeans/auth": "^0.1.18-rc.38",
43
+ "@owlmeans/auth-common": "^0.1.18-rc.44",
44
+ "@owlmeans/basic-envelope": "^0.1.18-rc.43",
45
45
  "@owlmeans/basic-ids": "^0.1.18-rc.34",
46
- "@owlmeans/basic-keys": "^0.1.18-rc.44",
47
- "@owlmeans/client-config": "^0.1.18-rc.40",
48
- "@owlmeans/client-entrypoint": "^0.1.18-rc.43",
49
- "@owlmeans/config": "^0.1.18-rc.40",
46
+ "@owlmeans/basic-keys": "^0.1.18-rc.45",
47
+ "@owlmeans/client-config": "^0.1.18-rc.41",
48
+ "@owlmeans/client-entrypoint": "^0.1.18-rc.44",
49
+ "@owlmeans/config": "^0.1.18-rc.41",
50
50
  "@owlmeans/context": "^0.1.18-rc.32",
51
- "@owlmeans/kluster": "^0.1.18-rc.39",
52
- "@owlmeans/entrypoint": "^0.1.18-rc.38",
53
- "@owlmeans/redis-resource": "^0.1.18-rc.40",
51
+ "@owlmeans/kluster": "^0.1.18-rc.40",
52
+ "@owlmeans/entrypoint": "^0.1.18-rc.39",
53
+ "@owlmeans/redis-resource": "^0.1.18-rc.41",
54
54
  "@owlmeans/resource": "^0.1.18-rc.37",
55
55
  "@owlmeans/route": "^0.1.18-rc.33",
56
- "@owlmeans/server-api": "^0.1.18-rc.47",
57
- "@owlmeans/server-auth-identity": "^0.1.18-rc.43",
58
- "@owlmeans/server-auth-session": "^0.1.18-rc.12",
59
- "@owlmeans/server-context": "^0.1.18-rc.39",
60
- "@owlmeans/server-entrypoint": "^0.1.18-rc.37",
56
+ "@owlmeans/server-api": "^0.1.18-rc.48",
57
+ "@owlmeans/server-auth-identity": "^0.1.18-rc.44",
58
+ "@owlmeans/server-auth-session": "^0.1.18-rc.13",
59
+ "@owlmeans/server-context": "^0.1.18-rc.40",
60
+ "@owlmeans/server-entrypoint": "^0.1.18-rc.38",
61
61
  "@owlmeans/server-route": "^0.1.18-rc.32",
62
- "@owlmeans/server-socket": "^0.1.18-rc.50",
63
- "@owlmeans/socket": "^0.1.18-rc.36",
62
+ "@owlmeans/server-socket": "^0.1.18-rc.51",
63
+ "@owlmeans/socket": "^0.1.18-rc.37",
64
64
  "@owlmeans/static-resource": "^0.1.18-rc.36",
65
65
  "@scure/base": "^2.3.0"
66
66
  },
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@owlmeans/dep-config": "workspace:*",
72
- "@owlmeans/test-auth": "^0.1.18-rc.42",
72
+ "@owlmeans/test-auth": "^0.1.18-rc.43",
73
73
  "@types/bun": "^1.4.0",
74
74
  "@types/node": "^26.1.0",
75
75
  "nodemon": "^3.1.14",
@@ -38,7 +38,7 @@ The manager is built on the OwlMeans entrypoint system, providing:
38
38
  This manager app is part of the `@owlmeans/server-auth` package:
39
39
 
40
40
  ```bash
41
- npm install @owlmeans/server-auth@^0.1.18-rc.50
41
+ npm install @owlmeans/server-auth@^0.1.18-rc.51
42
42
  ```
43
43
 
44
44
  ## API Reference