@gjermundgaraba/clankerauth-dev 0.10.0 → 0.11.1
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 +1 -20
- package/dist/THIRD_PARTY_NOTICES.txt +6 -6
- package/dist/index.mjs +45 -42
- package/dist/web/assets/index-BMyw4f-O.js +51 -0
- package/dist/web/index.html +1 -1
- package/package.json +6 -10
- package/dist/generate_key_pair-ExJspZNk.mjs +0 -1
- package/dist/testing.d.ts +0 -40
- package/dist/testing.mjs +0 -1
- package/dist/web/assets/index-CKy2tdHK.js +0 -51
package/README.md
CHANGED
|
@@ -107,25 +107,6 @@ Two optional test hooks help exercise integrations:
|
|
|
107
107
|
|
|
108
108
|
## A fake issuer for tests
|
|
109
109
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
```ts
|
|
113
|
-
import { startFakeIssuer } from "@gjermundgaraba/clankerauth-dev/testing";
|
|
114
|
-
|
|
115
|
-
const auth = await startFakeIssuer({
|
|
116
|
-
resource: "http://127.0.0.1:8080/",
|
|
117
|
-
scopes: ["notes:read", "notes:write"],
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
auth.issuer; // configure the resource server with this
|
|
121
|
-
const token = await auth.sign(); // every claim is overridable: auth.sign({ exp, aud, scope })
|
|
122
|
-
const key = auth.apiKey(["notes:read"]); // and auth.apiKey(scopes, someOtherResource)
|
|
123
|
-
auth.revoke(key); // the next verification is 401, online, as the real issuer behaves
|
|
124
|
-
auth.fail(503); // both endpoints answer this instead; auth.fail() restores them
|
|
125
|
-
auth.verifications(); // how many API-key verifications were served
|
|
126
|
-
await auth.close();
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
Use it for what a real issuer makes slow or awkward: a token that must expire in two seconds, a key granted on someone else's resource, an outage. Use `startDisposableIssuer` when the protocol itself is what the test is about — sign-in, consent, forward auth, dynamic registration.
|
|
110
|
+
A test that needs only JWKS and key lists — a token that must expire in two seconds, a key granted on someone else's resource, an outage — wants the SDK's fake issuer, `@gjermundgaraba/clankerauth-sdk/testing`, instead of this package. Use `startDisposableIssuer` when the protocol itself is what the test is about — sign-in, consent, forward auth, dynamic registration.
|
|
130
111
|
|
|
131
112
|
MIT licensed. The bundled third-party licenses are listed in `dist/THIRD_PARTY_NOTICES.txt`.
|
|
@@ -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.118
|
|
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.118
|
|
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.8.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.118
|
|
1298
1298
|
LICENSE
|
|
1299
1299
|
MIT License
|
|
1300
1300
|
|
|
@@ -1470,7 +1470,7 @@ SOFTWARE.
|
|
|
1470
1470
|
|
|
1471
1471
|
---
|
|
1472
1472
|
|
|
1473
|
-
undici@8.
|
|
1473
|
+
undici@8.11.2
|
|
1474
1474
|
LICENSE
|
|
1475
1475
|
MIT License
|
|
1476
1476
|
|
|
@@ -1497,7 +1497,7 @@ SOFTWARE.
|
|
|
1497
1497
|
|
|
1498
1498
|
---
|
|
1499
1499
|
|
|
1500
|
-
ws@8.
|
|
1500
|
+
ws@8.22.0
|
|
1501
1501
|
LICENSE
|
|
1502
1502
|
Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
|
|
1503
1503
|
Copyright (c) 2013 Arnout Kazemier and contributors
|