@o3co/auth-provider-foundation 0.17.0-rc.1 → 0.17.0-rc.2
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.ja.md +2 -2
- package/README.md +3 -2
- package/dist/mfa/module.d.mts +2 -1
- package/dist/mfa/module.d.mts.map +1 -1
- package/dist/testing/index.d.mts +3 -2
- package/dist/testing/index.d.mts.map +1 -1
- package/dist/testing/index.mjs +3 -2
- package/package.json +4 -4
package/README.ja.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @o3co/auth-provider-foundation
|
|
2
2
|
|
|
3
|
-
最終更新: 2026-10-
|
|
3
|
+
最終更新: 2026-10-06
|
|
4
4
|
|
|
5
5
|
auth.provider のための「the Store」 — デプロイ自身のユーザーサービス — の HTTP クライアント。`HttpUserRepository` は core の `UserRepository` ポートを HTTPS で実装する: ユーザーを認証し、フェデレーション ID をリンクし、federation grants が求める ID の照会に答え、MFA の登録の証人を書く。`registerBuiltinAdapters` はそれを `"http"` ユーザーアダプターとして登録する。このパッケージはまた、Store の MFA エンドポイント — Store が主体の第二要素と登録の証人を保持する場所 — の契約を、それを名指す設定セクションと、その失敗が投げるものとともに定める。`HttpMfaFactorStore` は要素のエンドポイントの上に core の `MfaFactorStore` を実装し、`foundationMfaFactorStoreModule` がそれを組み込む。
|
|
6
6
|
|
|
@@ -273,7 +273,7 @@ URL が無ければ何も書かれず、プロバイダーは Store が返す `m
|
|
|
273
273
|
- `foundationMfaFactorStoreModule`・`FoundationMfaFactorStoreModuleOptions` — そのモジュール([`src/mfa/module.mts`](src/mfa/module.mts))。
|
|
274
274
|
- `MfaStoreError`・`MfaStoreFailure`・`MfaStoreOperation` — MFA エンドポイントの失敗が投げるもの。`name`・`reason`・`operation`・`storeStatus` は契約の一部で、`status` は持たない([`src/mfa/storeFailure.mts`](src/mfa/storeFailure.mts))。アダプターが投げるときに通す関数と、`foundation-mfa-factor-store` セクションのスキーマと読み取り([`src/mfa/section.mts`](src/mfa/section.mts))はパッケージ内部のもの。
|
|
275
275
|
|
|
276
|
-
[`src/testing/index.mts`](src/testing/index.mts) から `@o3co/auth-provider-foundation/testing` として、テストコードのためだけに export される: `foundationMfaFactorStoreConfig(urls, extra?)` — テストの設定に重ねる設定の断片としての `foundation-mfa-factor-store` セクション。`urls` が持つ四つの URL(偽の Store の `urls` も。その他のエンドポイントは残す)と、`extra` をそのまま持つ。そして `foundationUserRepositoryHttpConfig(urls, extra?)` — ユーザーリポジトリの `http` ブロック。`urls` が持つもののうち `"http"` ビルダーが読む Store の URL(MFA 要素のエンドポイントは残す)と、`extra`
|
|
276
|
+
[`src/testing/index.mts`](src/testing/index.mts) から `@o3co/auth-provider-foundation/testing` として、テストコードのためだけに export される: `foundationMfaFactorStoreConfig(urls, extra?)` — テストの設定に重ねる設定の断片としての `foundation-mfa-factor-store` セクション。`urls` が持つ四つの URL(偽の Store の `urls` も。その他のエンドポイントは残す)と、`extra` をそのまま持つ。そして `foundationUserRepositoryHttpConfig(urls, extra?)` — ユーザーリポジトリの `http` ブロック。`urls` が持つもののうち `"http"` ビルダーが読む Store の URL(MFA 要素のエンドポイントは残す)と、`extra` をそのまま持ち、テストが `"http"` ビルダーに、または `foundationMfaFactorStoreModule` に `storeTransport` として渡す。
|
|
277
277
|
|
|
278
278
|
## テスト
|
|
279
279
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @o3co/auth-provider-foundation
|
|
2
2
|
|
|
3
|
-
Last updated: 2026-10-
|
|
3
|
+
Last updated: 2026-10-06
|
|
4
4
|
|
|
5
5
|
The HTTP client of "the Store" — the deployment's own user service — for
|
|
6
6
|
auth.provider. `HttpUserRepository` implements core's `UserRepository` port over
|
|
@@ -821,7 +821,8 @@ a test's configuration, holding the four URLs `urls` holds — a fake Store's
|
|
|
821
821
|
`foundationUserRepositoryHttpConfig(urls, extra?)`, the user repository's
|
|
822
822
|
`http` block, holding the Store URLs the `"http"` builder reads that `urls`
|
|
823
823
|
holds — its MFA factor endpoints left behind — and `extra` as given, which a
|
|
824
|
-
|
|
824
|
+
test hands to the `"http"` builder, or to `foundationMfaFactorStoreModule` as
|
|
825
|
+
its `storeTransport`.
|
|
825
826
|
|
|
826
827
|
## Tests
|
|
827
828
|
|
package/dist/mfa/module.d.mts
CHANGED
|
@@ -15,7 +15,8 @@ import { type Module } from "@o3co/auth-provider-core";
|
|
|
15
15
|
export interface FoundationMfaFactorStoreModuleOptions {
|
|
16
16
|
/**
|
|
17
17
|
* The Store transport settings: the user repository's HTTP settings as the
|
|
18
|
-
* configuration holds them (`repositories.user.http`
|
|
18
|
+
* configuration holds them (`repositories.user.http` in the standalone
|
|
19
|
+
* template, which hands them here), whose `bearerToken`,
|
|
19
20
|
* `timeout` and `maxResponseBytes` are the Store's, text read as numbers.
|
|
20
21
|
* `{}` states none: no credential is sent, and the defaults apply.
|
|
21
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.mts","sourceRoot":"","sources":["../../src/mfa/module.mts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,0BAA0B,CAAC;AASrE,MAAM,WAAW,qCAAqC;IACrD
|
|
1
|
+
{"version":3,"file":"module.d.mts","sourceRoot":"","sources":["../../src/mfa/module.mts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,0BAA0B,CAAC;AASrE,MAAM,WAAW,qCAAqC;IACrD;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;CACjC;AAYD,wEAAwE;AACxE,wBAAgB,8BAA8B,CAC7C,OAAO,EAAE,qCAAqC,GAC5C,MAAM,CAeR"}
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -19,8 +19,9 @@ export declare function foundationMfaFactorStoreConfig(urls: Partial<Readonly<Re
|
|
|
19
19
|
/**
|
|
20
20
|
* The user repository's `http` block, as the `"http"` builder reads it: the
|
|
21
21
|
* Store URLs `urls` holds — a fake Store's `urls` included, its MFA factor
|
|
22
|
-
* endpoints left behind — and `extra` as given. A
|
|
23
|
-
*
|
|
22
|
+
* endpoints left behind — and `extra` as given. A test hands it to the
|
|
23
|
+
* `"http"` builder, or to `foundationMfaFactorStoreModule` as its
|
|
24
|
+
* `storeTransport`.
|
|
24
25
|
*/
|
|
25
26
|
export declare function foundationUserRepositoryHttpConfig(urls: Partial<FoundationUserRepositoryUrls>, extra?: Readonly<Record<string, unknown>>): Readonly<Record<string, unknown>>;
|
|
26
27
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/testing/index.mts"],"names":[],"mappings":"AAgBA;;;GAGG;AAEH,OAAO,EACN,mCAAmC,EACnC,KAAK,4BAA4B,EACjC,MAAM,oBAAoB,CAAC;AAI5B,4FAA4F;AAC5F,QAAA,MAAM,wBAAwB,+IAMpB,CAAC;AAEX,4EAA4E;AAC5E,MAAM,MAAM,4BAA4B,GAAG,QAAQ,CAClD,MAAM,CAAC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAC1D,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC7C,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,EAC5E,KAAK,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM,GAC3C;IAAE,QAAQ,CAAC,CAAC,mCAAmC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAAE,CAMvF;AAED
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/testing/index.mts"],"names":[],"mappings":"AAgBA;;;GAGG;AAEH,OAAO,EACN,mCAAmC,EACnC,KAAK,4BAA4B,EACjC,MAAM,oBAAoB,CAAC;AAI5B,4FAA4F;AAC5F,QAAA,MAAM,wBAAwB,+IAMpB,CAAC;AAEX,4EAA4E;AAC5E,MAAM,MAAM,4BAA4B,GAAG,QAAQ,CAClD,MAAM,CAAC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAC1D,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC7C,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,EAC5E,KAAK,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM,GAC3C;IAAE,QAAQ,CAAC,CAAC,mCAAmC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAAE,CAMvF;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CACjD,IAAI,EAAE,OAAO,CAAC,4BAA4B,CAAC,EAC3C,KAAK,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM,GAC3C,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAMnC"}
|
package/dist/testing/index.mjs
CHANGED
|
@@ -44,8 +44,9 @@ export function foundationMfaFactorStoreConfig(urls, extra = {}) {
|
|
|
44
44
|
/**
|
|
45
45
|
* The user repository's `http` block, as the `"http"` builder reads it: the
|
|
46
46
|
* Store URLs `urls` holds — a fake Store's `urls` included, its MFA factor
|
|
47
|
-
* endpoints left behind — and `extra` as given. A
|
|
48
|
-
*
|
|
47
|
+
* endpoints left behind — and `extra` as given. A test hands it to the
|
|
48
|
+
* `"http"` builder, or to `foundationMfaFactorStoreModule` as its
|
|
49
|
+
* `storeTransport`.
|
|
49
50
|
*/
|
|
50
51
|
export function foundationUserRepositoryHttpConfig(urls, extra = {}) {
|
|
51
52
|
const block = {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3co/auth-provider-foundation",
|
|
3
3
|
"description": "Production HTTP user-authentication adapter for auth.provider",
|
|
4
|
-
"version": "0.17.0-rc.
|
|
4
|
+
"version": "0.17.0-rc.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.0.0"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"zod": "^4.6.5"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@o3co/auth-provider-core": "^0.17.0-rc.
|
|
43
|
+
"@o3co/auth-provider-core": "^0.17.0-rc.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^26.6.3",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"vitest": "^5.0.2",
|
|
49
49
|
"@vitest/coverage-v8": "^5.0.2",
|
|
50
50
|
"@o3co/ts.hocon": "^1.13.0",
|
|
51
|
-
"@o3co/auth-provider-
|
|
52
|
-
"@o3co/auth-provider-
|
|
51
|
+
"@o3co/auth-provider-test-kit": "0.17.0-rc.2",
|
|
52
|
+
"@o3co/auth-provider-core": "0.17.0-rc.2"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"prebuild": "rimraf dist",
|