@gjermundgaraba/clankerauth-dev 0.7.1 → 0.8.0
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/dist/THIRD_PARTY_NOTICES.txt +4 -4
- package/dist/index.mjs +39 -39
- package/dist/web/assets/index-Bi2toh59.js +53 -0
- package/dist/web/index.html +1 -1
- package/package.json +4 -3
- package/dist/web/assets/index-VQlvCIHK.js +0 -53
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ issuer.clientSecret;
|
|
|
26
26
|
await issuer.close();
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
Each call listens on a random loopback port, creates a fresh SQLite database and secret in a temporary directory, provisions the owner, the resources and the client in-process through the server's administration module, and returns. Only the returned issuer is reached over HTTP. The client is first party: once the owner is signed in, an authorization request redirects straight to the callback with a code and no consent step. `close()` drains in-flight requests, closes the database and deletes the directory. Nothing is shared between calls and nothing survives them.
|
|
29
|
+
Each call listens on a random loopback port, creates a fresh SQLite database and secret in a temporary directory, provisions the owner, the resources and the client in-process through the server's administration module, and returns. Only the returned issuer is reached over HTTP. The client is first party: once the owner is signed in, an authorization request redirects straight to the callback with a code and no consent step. `close()` drains in-flight requests, closes the database and deletes the directory. Nothing is shared between calls and nothing survives them. A start that fails, for example on an invalid `cookieDomain`, rejects after doing the same, so it leaves no port bound and nothing to close.
|
|
30
30
|
|
|
31
31
|
## Provisioning
|
|
32
32
|
|
|
@@ -53,7 +53,7 @@ Pass `dataDir` and a fixed `port` to keep the issuer's state:
|
|
|
53
53
|
const issuer = await startDisposableIssuer({ ...options, dataDir: ".dev/auth", port: 5174 });
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
The owner account and password, the signing secret, the registered client and the database are kept in that directory, and provisioning is idempotent, so the next start reuses them: the same sign-in works, API keys minted before still verify, and browser storage keyed by the origin survives. A fixed port is part of that, because the origin is what cookies and registered redirect URIs are keyed by. `close()` leaves the directory alone. Treat it as the whole secret of the workspace and keep it out of version control. Without `dataDir`, nothing changes: a temporary directory, a random port, and everything removed by `close()`.
|
|
56
|
+
The owner account and password, the signing secret, the registered client and the database are kept in that directory, and provisioning is idempotent, so the next start reuses them: the same sign-in works, API keys minted before still verify, and browser storage keyed by the origin survives. A fixed port is part of that, because the origin is what cookies and registered redirect URIs are keyed by. `close()` leaves the directory alone. Treat it as the whole secret of the workspace and keep it out of version control. `credentials.json` is written and read by this package alone and is validated against its schema on every start, so an edited or truncated file is refused rather than half-read. Without `dataDir`, nothing changes: a temporary directory, a random port, and everything removed by `close()`.
|
|
57
57
|
|
|
58
58
|
To develop an app behind forward auth, pass a `cookieDomain`:
|
|
59
59
|
|
|
@@ -418,7 +418,7 @@ SOFTWARE.
|
|
|
418
418
|
|
|
419
419
|
---
|
|
420
420
|
|
|
421
|
-
@effect/platform-node-shared@4.0.0-rc.
|
|
421
|
+
@effect/platform-node-shared@4.0.0-rc.117
|
|
422
422
|
LICENSE
|
|
423
423
|
MIT License
|
|
424
424
|
|
|
@@ -445,7 +445,7 @@ SOFTWARE.
|
|
|
445
445
|
|
|
446
446
|
---
|
|
447
447
|
|
|
448
|
-
@effect/platform-node@4.0.0-rc.
|
|
448
|
+
@effect/platform-node@4.0.0-rc.117
|
|
449
449
|
LICENSE
|
|
450
450
|
MIT License
|
|
451
451
|
|
|
@@ -472,7 +472,7 @@ SOFTWARE.
|
|
|
472
472
|
|
|
473
473
|
---
|
|
474
474
|
|
|
475
|
-
@gjermundgaraba/effect-actions@0.
|
|
475
|
+
@gjermundgaraba/effect-actions@0.7.0
|
|
476
476
|
LICENSE
|
|
477
477
|
MIT License
|
|
478
478
|
|
|
@@ -1294,7 +1294,7 @@ SOFTWARE.
|
|
|
1294
1294
|
|
|
1295
1295
|
---
|
|
1296
1296
|
|
|
1297
|
-
effect@4.0.0-rc.
|
|
1297
|
+
effect@4.0.0-rc.117
|
|
1298
1298
|
LICENSE
|
|
1299
1299
|
MIT License
|
|
1300
1300
|
|