@owlmeans/oidc 0.1.18-rc.46 → 0.1.18-rc.48

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
@@ -12,7 +12,7 @@ Shared OIDC protocol abstractions — guard/gate aliases, models, and immutable
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- bun add @owlmeans/oidc@^0.1.18-rc.46
15
+ bun add @owlmeans/oidc@^0.1.18-rc.48
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -95,7 +95,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
95
95
  your project's skill store (`.agents/skills/`):
96
96
 
97
97
  ```sh
98
- npx @owlmeans/agent-skills@^0.1.18-rc.39
98
+ npx @owlmeans/agent-skills@^0.1.18-rc.41
99
99
  ```
100
100
 
101
101
  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/oidc",
4
- "version": "0.1.18-rc.46",
5
- "generatedAt": "2026-09-24T14:00:35.038Z",
4
+ "version": "0.1.18-rc.48",
5
+ "generatedAt": "2026-09-28T02:06:37.879Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/oidc
9
9
 
10
10
  **Layer:** Core
11
- **Install:** `"@owlmeans/oidc": "^0.1.18-rc.46"` in `dependencies`
11
+ **Install:** `"@owlmeans/oidc": "^0.1.18-rc.48"` in `dependencies`
12
12
 
13
13
  The shared half of the OIDC stack: no transport, no library. It owns the names, the shapes and the
14
14
  guard that the server relying party (`@owlmeans/server-oidc-rp`), the browser relying party
@@ -0,0 +1,2 @@
1
+ export declare const modules: import("@owlmeans/entrypoint").CommonEntrypoint[];
2
+ //# sourceMappingURL=modules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,mDAUnB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { body, filter, entrypoint } from '@owlmeans/entrypoint';
2
+ import { route, RouteMethod, backend } from '@owlmeans/route';
3
+ import { DISPATCHER_OIDC, DISPATCHER_OIDC_INIT } from './consts.js';
4
+ import { OIDCAuthInitParamsSchema, OIDCClientAuthPayloadSchema } from './models.js';
5
+ export const modules = [
6
+ entrypoint(route(DISPATCHER_OIDC_INIT, '/authenticate/oidc/init', backend(null, RouteMethod.POST)), filter(body(OIDCAuthInitParamsSchema))),
7
+ entrypoint(route(DISPATCHER_OIDC, '/authenticate/oidc/process', backend(null, RouteMethod.POST)), filter(body(OIDCClientAuthPayloadSchema)))
8
+ ];
9
+ //# sourceMappingURL=modules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACnE,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAEnF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,UAAU,CACR,KAAK,CAAC,oBAAoB,EAAE,yBAAyB,EAAE,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,EACvF,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAEvC;IACD,UAAU,CACR,KAAK,CAAC,eAAe,EAAE,4BAA4B,EAAE,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,EACrF,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,CAC1C;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/oidc",
3
- "version": "0.1.18-rc.46",
3
+ "version": "0.1.18-rc.48",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@owlmeans/auth": "^0.1.18-rc.36",
25
- "@owlmeans/auth-common": "^0.1.18-rc.38",
26
- "@owlmeans/basic-envelope": "^0.1.18-rc.37",
25
+ "@owlmeans/auth-common": "^0.1.18-rc.40",
26
+ "@owlmeans/basic-envelope": "^0.1.18-rc.39",
27
27
  "@owlmeans/config": "^0.1.18-rc.38",
28
28
  "@owlmeans/context": "^0.1.18-rc.32",
29
29
  "@owlmeans/entrypoint": "^0.1.18-rc.37",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=guard.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guard.spec.d.ts","sourceRoot":"","sources":["guard.spec.ts"],"names":[],"mappings":""}
@@ -1,32 +0,0 @@
1
- import { describe, expect, mock, test } from 'bun:test';
2
- /**
3
- * A bearer that cannot be decoded is a credential the server does not accept — the guard answers
4
- * "not authenticated" (the API layer's 401), exactly as for a signature that does not verify, and
5
- * never throws the decoder's own error (which the API layer answers with 500).
6
- */
7
- mock.module('@owlmeans/auth-common/utils', () => ({
8
- trust: async () => ({ key: { verify: async () => false } }),
9
- extractAuthToken: (req, type, strip = true) => {
10
- const header = req.headers.authorization;
11
- if (header == null || !header.toUpperCase().startsWith(type.toUpperCase()))
12
- return null;
13
- return strip ? header.split(' ')[1] : header;
14
- },
15
- }));
16
- const { makeOidcGuard } = await import('../src/guard.js');
17
- const call = async (authorization) => {
18
- const guard = makeOidcGuard();
19
- guard.assertCtx = () => ({ cfg: { alias: 'app' } });
20
- const res = { responseProvider: { header: () => undefined } };
21
- return await guard.handle({ headers: { authorization } }, res);
22
- };
23
- describe('oidc guard', () => {
24
- test('an undecodable wrapped token is unauthenticated, not a server error', async () => {
25
- expect(await call('OIDC-WRAPPED-TOKEN bogus.token')).toBe(false);
26
- });
27
- test('garbage of every shape stays unauthenticated', async () => {
28
- expect(await call('OIDC-WRAPPED-TOKEN %%%')).toBe(false);
29
- expect(await call('OIDC-WRAPPED-TOKEN ')).toBe(false);
30
- });
31
- });
32
- //# sourceMappingURL=guard.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guard.spec.js","sourceRoot":"","sources":["guard.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAEvD;;;;GAIG;AACH,IAAI,CAAC,MAAM,CAAC,6BAA6B,EAAE,GAAG,EAAE,CAAC,CAAC;IAChD,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC;IAC3D,gBAAgB,EAAE,CAAC,GAAwC,EAAE,IAAY,EAAE,KAAK,GAAG,IAAI,EAAE,EAAE;QACzF,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAA;QACxC,IAAI,MAAM,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YAAE,OAAO,IAAI,CAAA;QACvF,OAAO,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;IAC9C,CAAC;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAA;AAEzD,MAAM,IAAI,GAAG,KAAK,EAAE,aAAqB,EAAE,EAAE;IAC3C,MAA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