@jeffjassky/oauth-host 0.3.0 → 0.4.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/dist/index.cjs +724 -407
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +724 -407
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/types/index.d.ts +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeffjassky/oauth-host",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "OAuth 2.1 + OIDC authorization server for Express/Mongoose apps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jeff Jassky <jeff@jeffjassky.com>",
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=20"
|
|
45
45
|
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"jose": "^6.2.10"
|
|
48
|
+
},
|
|
46
49
|
"scripts": {
|
|
47
50
|
"build": "tsup",
|
|
48
51
|
"dev": "tsup --watch",
|
package/types/index.d.ts
CHANGED
|
@@ -422,6 +422,19 @@ export interface OAuthClientDoc {
|
|
|
422
422
|
metadataFetchedAt?: Date;
|
|
423
423
|
/** Last `ETag`, replayed as `If-None-Match` so an unchanged document is a 304. */
|
|
424
424
|
metadataEtag?: string;
|
|
425
|
+
/**
|
|
426
|
+
* The usable (intersected) token endpoint auth method set for a CIMD
|
|
427
|
+
* client — what `validateMetadataDocument` computed from the document's
|
|
428
|
+
* offered methods ∩ what this server supports. Absent on a manual
|
|
429
|
+
* registration; its behavior derives from `type` exactly as before. A row
|
|
430
|
+
* with no value here supports `private_key_jwt` never — see
|
|
431
|
+
* `authenticateClient`.
|
|
432
|
+
*/
|
|
433
|
+
tokenEndpointAuthMethods?: string[];
|
|
434
|
+
/** `private_key_jwt` key source: a JWKS URL. Mutually exclusive with `jwks`. */
|
|
435
|
+
jwksUri?: string;
|
|
436
|
+
/** `private_key_jwt` key source: an inline JWK Set. Mutually exclusive with `jwksUri`. */
|
|
437
|
+
jwks?: unknown;
|
|
425
438
|
/** First-party marker. Reserved — v1 never skips consent. */
|
|
426
439
|
trusted: boolean;
|
|
427
440
|
/** Empty for a public client. There is no secret to store. */
|