@owlmeans/server-auth 0.1.18-rc.62 → 0.1.18
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 +2 -2
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/server-auth/SKILL.md +1 -1
- package/build/manager/actions/manager.d.ts +6 -0
- package/build/manager/actions/manager.d.ts.map +1 -0
- package/build/manager/actions/manager.js +10 -0
- package/build/manager/actions/manager.js.map +1 -0
- package/build/manager/modules.d.ts +2 -0
- package/build/manager/modules.d.ts.map +1 -0
- package/build/manager/modules.js +21 -0
- package/build/manager/modules.js.map +1 -0
- package/build/modules.d.ts +3 -0
- package/build/modules.d.ts.map +1 -0
- package/build/modules.js +11 -0
- package/build/modules.js.map +1 -0
- package/package.json +29 -29
- package/src/manager/README.md +1 -1
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
|
|
16
|
+
bun add @owlmeans/server-auth@^0.1.18
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Concepts
|
|
@@ -254,7 +254,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
254
254
|
your project's skill store (`.agents/skills/`):
|
|
255
255
|
|
|
256
256
|
```sh
|
|
257
|
-
npx @owlmeans/agent-skills@^0.1.18
|
|
257
|
+
npx @owlmeans/agent-skills@^0.1.18
|
|
258
258
|
```
|
|
259
259
|
|
|
260
260
|
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": 3,
|
|
3
3
|
"package": "@owlmeans/server-auth",
|
|
4
|
-
"version": "0.1.18
|
|
5
|
-
"generatedAt": "2026-10-
|
|
4
|
+
"version": "0.1.18",
|
|
5
|
+
"generatedAt": "2026-10-28T00:31:34.722Z",
|
|
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
|
|
11
|
+
**Install:** `"@owlmeans/server-auth": "^0.1.18"` in `dependencies`
|
|
12
12
|
|
|
13
13
|
Two halves, deliberately split by subpath:
|
|
14
14
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AllowanceRequest, AuthCredentials } from '@owlmeans/auth';
|
|
2
|
+
import type { RefedEntrypointHandler } from '@owlmeans/server-entrypoint';
|
|
3
|
+
export declare const authenticationInit: RefedEntrypointHandler<AllowanceRequest>;
|
|
4
|
+
export declare const authenticate: RefedEntrypointHandler<AuthCredentials>;
|
|
5
|
+
export declare const rely: RefedEntrypointHandler<void>;
|
|
6
|
+
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../src/manager/actions/manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAIzE,eAAO,MAAM,kBAAkB,EAAE,sBAAsB,CAAC,gBAAgB,CAGvE,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,sBAAsB,CAAC,eAAe,CAGhE,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAK7C,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { handleBody } from '@owlmeans/server-api';
|
|
2
|
+
import { makeAuthModel } from '../model.js';
|
|
3
|
+
import { handleConnection } from '@owlmeans/server-socket';
|
|
4
|
+
export const authenticationInit = handleBody(async (payload, ctx) => await makeAuthModel(ctx).init(payload));
|
|
5
|
+
export const authenticate = handleBody(async (payload, ctx) => await makeAuthModel(ctx).authenticate(payload));
|
|
6
|
+
export const rely = handleConnection(
|
|
7
|
+
// @TODO Request will contain information is there requrest
|
|
8
|
+
// privileged or not (privileged request implies auth provider)
|
|
9
|
+
async (conn, ctx, req) => await makeAuthModel(ctx).rely(conn, req.auth));
|
|
10
|
+
//# sourceMappingURL=manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../../src/manager/actions/manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE1D,MAAM,CAAC,MAAM,kBAAkB,GAA6C,UAAU,CACpF,KAAK,EAAE,OAAyB,EAAE,GAAG,EAAE,EAAE,CACvC,MAAM,aAAa,CAAC,GAA4B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAClE,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAA4C,UAAU,CAC7E,KAAK,EAAE,OAAwB,EAAE,GAAG,EAAE,EAAE,CACtC,MAAM,aAAa,CAAC,GAA4B,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAC1E,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAAiC,gBAAgB;AAChE,4DAA4D;AAC5D,+DAA+D;AAC/D,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,CACvB,MAAM,aAAa,CAAC,GAA4B,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CACzE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../src/manager/modules.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,OAAO,mDAAO,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AUTHEN, AUTHEN_AUTHEN, AUTHEN_INIT, AUTHEN_RELY, MOD_RECAPTCHA } from '@owlmeans/auth';
|
|
2
|
+
import { modules as list } from '@owlmeans/auth-common';
|
|
3
|
+
import { modules as apiConfig } from '@owlmeans/api-config-server';
|
|
4
|
+
import { elevate, guard } from '@owlmeans/server-entrypoint';
|
|
5
|
+
import * as actions from './actions/index.js';
|
|
6
|
+
import { entrypoint } from '@owlmeans/client-entrypoint';
|
|
7
|
+
import { backend, route, RouteMethod } from '@owlmeans/route';
|
|
8
|
+
import { handleIntermediate } from '@owlmeans/server-api';
|
|
9
|
+
import { DEFAULT_RELY } from './consts.js';
|
|
10
|
+
elevate(list, AUTHEN, handleIntermediate(async (_, context) => await context.updateContext()), { intermediate: true });
|
|
11
|
+
elevate(list, AUTHEN_INIT, actions.authenticationInit);
|
|
12
|
+
elevate(list, AUTHEN_AUTHEN, actions.authenticate);
|
|
13
|
+
elevate(list, AUTHEN_RELY, actions.rely, guard(DEFAULT_RELY));
|
|
14
|
+
export const modules = list;
|
|
15
|
+
list.push(...apiConfig);
|
|
16
|
+
list.push(entrypoint(route(MOD_RECAPTCHA, '/api/siteverify', backend({
|
|
17
|
+
host: 'https://www.google.com',
|
|
18
|
+
base: 'recaptcha',
|
|
19
|
+
secure: true,
|
|
20
|
+
}, RouteMethod.POST))));
|
|
21
|
+
//# sourceMappingURL=modules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../src/manager/modules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC/F,OAAO,EAAE,OAAO,IAAI,IA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1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAOnE,eAAO,MAAM,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAK9C,CAAA"}
|
package/build/modules.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { elevate } from '@owlmeans/server-entrypoint';
|
|
2
|
+
import { modules as list } from '@owlmeans/auth-common';
|
|
3
|
+
import { DISPATCHER, DISPATCHER_AUTHEN } from '@owlmeans/auth';
|
|
4
|
+
import { authenticate } from './actions/service.js';
|
|
5
|
+
import { stab, elevate as celevate } from '@owlmeans/client-entrypoint';
|
|
6
|
+
elevate(list, DISPATCHER_AUTHEN, authenticate);
|
|
7
|
+
celevate(list, DISPATCHER, stab);
|
|
8
|
+
export const modules = [
|
|
9
|
+
...list.filter((module) => [DISPATCHER, DISPATCHER_AUTHEN].includes(module.getAlias()))
|
|
10
|
+
];
|
|
11
|
+
//# sourceMappingURL=modules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAEvE,OAAO,CAAC,IAAI,EAAE,iBAAiB,EAAE,YAAY,CAAC,CAAA;AAC9C,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;AAEhC,MAAM,CAAC,MAAM,OAAO,GAAgC;IAClD,GAAG,IAAI,CAAC,MAAM,CACZ,CAAC,MAAM,EAAuC,EAAE,CAC9C,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAC9D;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/server-auth",
|
|
3
|
-
"version": "0.1.18
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -37,40 +37,40 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@noble/hashes": "^2.4.0",
|
|
40
|
-
"@owlmeans/api": "^0.1.18
|
|
41
|
-
"@owlmeans/api-config-server": "^0.1.18
|
|
42
|
-
"@owlmeans/auth": "^0.1.18
|
|
43
|
-
"@owlmeans/auth-common": "^0.1.18
|
|
44
|
-
"@owlmeans/basic-envelope": "^0.1.18
|
|
45
|
-
"@owlmeans/basic-ids": "^0.1.18
|
|
46
|
-
"@owlmeans/basic-keys": "^0.1.18
|
|
47
|
-
"@owlmeans/client-config": "^0.1.18
|
|
48
|
-
"@owlmeans/client-entrypoint": "^0.1.18
|
|
49
|
-
"@owlmeans/config": "^0.1.18
|
|
50
|
-
"@owlmeans/context": "^0.1.18
|
|
51
|
-
"@owlmeans/kluster": "^0.1.18
|
|
52
|
-
"@owlmeans/log": "^0.1.18
|
|
53
|
-
"@owlmeans/entrypoint": "^0.1.18
|
|
54
|
-
"@owlmeans/redis-resource": "^0.1.18
|
|
55
|
-
"@owlmeans/resource": "^0.1.18
|
|
56
|
-
"@owlmeans/route": "^0.1.18
|
|
57
|
-
"@owlmeans/server-api": "^0.1.18
|
|
58
|
-
"@owlmeans/server-auth-identity": "^0.1.18
|
|
59
|
-
"@owlmeans/server-auth-session": "^0.1.18
|
|
60
|
-
"@owlmeans/server-context": "^0.1.18
|
|
61
|
-
"@owlmeans/server-entrypoint": "^0.1.18
|
|
62
|
-
"@owlmeans/server-route": "^0.1.18
|
|
63
|
-
"@owlmeans/server-socket": "^0.1.18
|
|
64
|
-
"@owlmeans/socket": "^0.1.18
|
|
65
|
-
"@owlmeans/static-resource": "^0.1.18
|
|
40
|
+
"@owlmeans/api": "^0.1.18",
|
|
41
|
+
"@owlmeans/api-config-server": "^0.1.18",
|
|
42
|
+
"@owlmeans/auth": "^0.1.18",
|
|
43
|
+
"@owlmeans/auth-common": "^0.1.18",
|
|
44
|
+
"@owlmeans/basic-envelope": "^0.1.18",
|
|
45
|
+
"@owlmeans/basic-ids": "^0.1.18",
|
|
46
|
+
"@owlmeans/basic-keys": "^0.1.18",
|
|
47
|
+
"@owlmeans/client-config": "^0.1.18",
|
|
48
|
+
"@owlmeans/client-entrypoint": "^0.1.18",
|
|
49
|
+
"@owlmeans/config": "^0.1.18",
|
|
50
|
+
"@owlmeans/context": "^0.1.18",
|
|
51
|
+
"@owlmeans/kluster": "^0.1.18",
|
|
52
|
+
"@owlmeans/log": "^0.1.18",
|
|
53
|
+
"@owlmeans/entrypoint": "^0.1.18",
|
|
54
|
+
"@owlmeans/redis-resource": "^0.1.18",
|
|
55
|
+
"@owlmeans/resource": "^0.1.18",
|
|
56
|
+
"@owlmeans/route": "^0.1.18",
|
|
57
|
+
"@owlmeans/server-api": "^0.1.18",
|
|
58
|
+
"@owlmeans/server-auth-identity": "^0.1.18",
|
|
59
|
+
"@owlmeans/server-auth-session": "^0.1.18",
|
|
60
|
+
"@owlmeans/server-context": "^0.1.18",
|
|
61
|
+
"@owlmeans/server-entrypoint": "^0.1.18",
|
|
62
|
+
"@owlmeans/server-route": "^0.1.18",
|
|
63
|
+
"@owlmeans/server-socket": "^0.1.18",
|
|
64
|
+
"@owlmeans/socket": "^0.1.18",
|
|
65
|
+
"@owlmeans/static-resource": "^0.1.18",
|
|
66
66
|
"@scure/base": "^2.4.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"ajv": "*"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@owlmeans/dep-config": "
|
|
73
|
-
"@owlmeans/test-auth": "^0.1.18
|
|
72
|
+
"@owlmeans/dep-config": "^0.1.18",
|
|
73
|
+
"@owlmeans/test-auth": "^0.1.18",
|
|
74
74
|
"@types/bun": "^1.4.2",
|
|
75
75
|
"@types/node": "^26.6.4",
|
|
76
76
|
"nodemon": "^3.1.14",
|
package/src/manager/README.md
CHANGED
|
@@ -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
|
|
41
|
+
npm install @owlmeans/server-auth@^0.1.18
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## API Reference
|