@owlmeans/auth-common 0.1.18-rc.40 → 0.1.18-rc.41
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/auth-common/SKILL.md +1 -1
- package/package.json +6 -6
- package/build/modules.d.ts +0 -3
- package/build/modules.d.ts.map +0 -1
- package/build/modules.js +0 -38
- package/build/modules.js.map +0 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Predefined authentication protocols, guards, and constants shared between server
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
bun add @owlmeans/auth-common@^0.1.18-rc.
|
|
15
|
+
bun add @owlmeans/auth-common@^0.1.18-rc.41
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -98,7 +98,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
98
98
|
your project's skill store (`.agents/skills/`):
|
|
99
99
|
|
|
100
100
|
```sh
|
|
101
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.
|
|
101
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.42
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
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/auth-common",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-09-
|
|
4
|
+
"version": "0.1.18-rc.41",
|
|
5
|
+
"generatedAt": "2026-09-29T08:01:58.121Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -8,7 +8,7 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/auth-common
|
|
9
9
|
|
|
10
10
|
**Layer:** Core
|
|
11
|
-
**Install:** `"@owlmeans/auth-common": "^0.1.18-rc.
|
|
11
|
+
**Install:** `"@owlmeans/auth-common": "^0.1.18-rc.41"` in `dependencies`
|
|
12
12
|
|
|
13
13
|
Everything a server and a browser must agree on to talk authentication: aliases, the shared
|
|
14
14
|
protocol declarations, the signature guard, and the contract for resolving the organization
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/auth-common",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.41",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@owlmeans/auth": "^0.1.18-rc.36",
|
|
33
|
-
"@owlmeans/auth-common": "^0.1.18-rc.
|
|
33
|
+
"@owlmeans/auth-common": "^0.1.18-rc.41",
|
|
34
34
|
"@owlmeans/basic-ids": "^0.1.18-rc.34",
|
|
35
|
-
"@owlmeans/basic-keys": "^0.1.18-rc.
|
|
36
|
-
"@owlmeans/client-entrypoint": "^0.1.18-rc.
|
|
35
|
+
"@owlmeans/basic-keys": "^0.1.18-rc.42",
|
|
36
|
+
"@owlmeans/client-entrypoint": "^0.1.18-rc.41",
|
|
37
37
|
"@owlmeans/context": "^0.1.18-rc.32",
|
|
38
38
|
"@owlmeans/entrypoint": "^0.1.18-rc.37",
|
|
39
|
-
"@owlmeans/resource": "^0.1.18-rc.
|
|
39
|
+
"@owlmeans/resource": "^0.1.18-rc.37",
|
|
40
40
|
"@owlmeans/route": "^0.1.18-rc.33"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@owlmeans/dep-config": "workspace:*",
|
|
44
|
-
"@owlmeans/test-auth": "^0.1.18-rc.
|
|
44
|
+
"@owlmeans/test-auth": "^0.1.18-rc.40",
|
|
45
45
|
"@types/bun": "^1.4.0",
|
|
46
46
|
"nodemon": "^3.1.14",
|
|
47
47
|
"typescript": "^7.0.2"
|
package/build/modules.d.ts
DELETED
package/build/modules.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO,mDAuBnB,CAAA;AAED,eAAO,MAAM,cAAc,mDAW1B,CAAA"}
|
package/build/modules.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { AUTHEN, AUTHEN_AUTHEN, AUTHEN_INIT, AUTHEN_RELY, AllowanceRequestSchema, AuthCredentialsSchema, AuthTokenSchema, CAUTHEN, CAUTHEN_AUTHEN, CAUTHEN_AUTHEN_DEFAULT, CAUTHEN_AUTHEN_TYPED, DISPATCHER, DISPATCHER_AUTHEN, OptionalAuthTokenSchema, CAUTHEN_FLOW_ENTER } from '@owlmeans/auth';
|
|
2
|
-
// import { AppType } from '@owlmeans/context'
|
|
3
|
-
import { body, filter, entrypoint, query } from '@owlmeans/entrypoint';
|
|
4
|
-
import { route, RouteMethod, frontend, backend, socket } from '@owlmeans/route';
|
|
5
|
-
import { DISPATCHER_PATH, WEB_API, authApi } from './consts.js';
|
|
6
|
-
export const modules = [
|
|
7
|
-
entrypoint(route(AUTHEN, '/authentication', backend())),
|
|
8
|
-
entrypoint(route(AUTHEN_INIT, '/init', backend(AUTHEN, RouteMethod.POST)), filter(body(AllowanceRequestSchema))),
|
|
9
|
-
entrypoint(route(AUTHEN_AUTHEN, '/authenticate', backend(AUTHEN, RouteMethod.POST)), filter(body(AuthCredentialsSchema))),
|
|
10
|
-
entrypoint(route(AUTHEN_RELY, '/rely', socket(AUTHEN)), filter(query(OptionalAuthTokenSchema))),
|
|
11
|
-
entrypoint(route(CAUTHEN, '/authentication', frontend())),
|
|
12
|
-
entrypoint(route(CAUTHEN_AUTHEN, '/login', frontend(CAUTHEN))),
|
|
13
|
-
entrypoint(route(CAUTHEN_AUTHEN_DEFAULT, '/', frontend(CAUTHEN_AUTHEN, true))),
|
|
14
|
-
entrypoint(route(CAUTHEN_AUTHEN_TYPED, '/:type', frontend(CAUTHEN_AUTHEN))),
|
|
15
|
-
// This is a helper route that is used by service providers to redirect to an external authentication service.
|
|
16
|
-
entrypoint(route(CAUTHEN_FLOW_ENTER, '/', frontend())),
|
|
17
|
-
// This is a helper route that is useb by service providres to process authentication provisioning via redirect.
|
|
18
|
-
// Also it can be default starting point to be redirected to an external identity provider.
|
|
19
|
-
entrypoint(route(DISPATCHER, DISPATCHER_PATH, frontend({ service: DISPATCHER })),
|
|
20
|
-
// This module is sticky - it means it's always attach to client router.
|
|
21
|
-
// It's required here cause every web app needs dispatcher route to authorize
|
|
22
|
-
// rediected users.
|
|
23
|
-
filter(query(AuthTokenSchema), { sticky: true })),
|
|
24
|
-
// This is a helper route that representes a API endpoint of service provider that wants to authenticate
|
|
25
|
-
// a user with OwlMeans server-auth library.
|
|
26
|
-
entrypoint(route(DISPATCHER_AUTHEN, '/authenticate', backend(null, RouteMethod.POST)), filter(body(AuthTokenSchema))),
|
|
27
|
-
];
|
|
28
|
-
export const managerModules = [
|
|
29
|
-
entrypoint(route(authApi.profile.base, '/profile', backend({ service: WEB_API }))),
|
|
30
|
-
entrypoint(route(authApi.profile.toEntityId, '/to-entity-id', backend(authApi.profile.base, RouteMethod.POST))),
|
|
31
|
-
entrypoint(route(authApi.auth.base, '/auth', backend({ service: WEB_API }))),
|
|
32
|
-
entrypoint(route(authApi.auth.delegate, '/delegate', backend(authApi.auth.base, RouteMethod.POST))),
|
|
33
|
-
];
|
|
34
|
-
// const skipModules = [DISPATCHER]
|
|
35
|
-
// export const authBackendModules = modules.filter(
|
|
36
|
-
// module => !skipModules.includes(module.alias) && module.route.route.type === AppType.Backend
|
|
37
|
-
// ).map(module => module.alias)
|
|
38
|
-
//# sourceMappingURL=modules.js.map
|
package/build/modules.js.map
DELETED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