@schemavaults/auth-server-sdk 0.39.0 → 0.40.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 +26 -5
- package/dist/cli.cjs +10 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/introspectToken.d.ts +31 -0
- package/dist/introspectToken.js +55 -1
- package/dist/introspectToken.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -275,7 +275,12 @@ the auth server, authenticating with your JWKS access key (`private_key_jwt`: a
|
|
|
275
275
|
fresh single-use JWKS access assertion per call):
|
|
276
276
|
|
|
277
277
|
```ts
|
|
278
|
-
import {
|
|
278
|
+
import {
|
|
279
|
+
getActorFromIntrospectionResult,
|
|
280
|
+
getAuthServerUrl,
|
|
281
|
+
introspectToken,
|
|
282
|
+
loadJwksAccessPrivateKey,
|
|
283
|
+
} from "@schemavaults/auth-server-sdk";
|
|
279
284
|
|
|
280
285
|
const result = await introspectToken({
|
|
281
286
|
auth_server_url: getAuthServerUrl(),
|
|
@@ -284,10 +289,12 @@ const result = await introspectToken({
|
|
|
284
289
|
token: accessToken,
|
|
285
290
|
});
|
|
286
291
|
if (result.active) {
|
|
287
|
-
result.uid;
|
|
288
|
-
result.sub;
|
|
289
|
-
result.client_id;
|
|
290
|
-
result.scope;
|
|
292
|
+
result.uid; // platform user id
|
|
293
|
+
result.sub; // OIDC subject `<auth_server_app_id>|<uid>`
|
|
294
|
+
result.client_id; // the client app the token was issued to
|
|
295
|
+
result.scope; // granted scope, if any
|
|
296
|
+
result.service_account; // true when the user is a client app's service account (a machine)
|
|
297
|
+
getActorFromIntrospectionResult(result); // the RFC 8693 actor of a delegated token, or null
|
|
291
298
|
}
|
|
292
299
|
```
|
|
293
300
|
|
|
@@ -312,6 +319,13 @@ An access token may say that someone acts on behalf of its user (an agent, say):
|
|
|
312
319
|
auth server does not issue such tokens yet; this SDK version accepts them so resource
|
|
313
320
|
servers can upgrade before it does (older versions reject a token carrying `act`).
|
|
314
321
|
|
|
322
|
+
The auth server mints delegated tokens only for API servers that accept them, and
|
|
323
|
+
none does by default. Once your resource server runs this version, have one of the
|
|
324
|
+
API server's managers turn on **Accept delegated tokens** on its page in the auth
|
|
325
|
+
server console (`PUT /api/apis/{api_server_id}/delegated-token-policy` with
|
|
326
|
+
`{ "accept_delegated_tokens": true }`). The API server definition reports the
|
|
327
|
+
setting as `accept_delegated_tokens`.
|
|
328
|
+
|
|
315
329
|
Route guards expose the actor of the token that resolved the user next to
|
|
316
330
|
`client_app_id`, and `decodeJWTsWithKeyManager()` returns it as `actor`:
|
|
317
331
|
|
|
@@ -329,6 +343,13 @@ guard.actor?.prior_actor; // the previous actor of a delegation chain, or null
|
|
|
329
343
|
token was revoked. A chain holds at most three actors; tokens with a deeper or
|
|
330
344
|
malformed `act` do not verify.
|
|
331
345
|
|
|
346
|
+
Introspection reports the actor too: the auth server's response carries `act`
|
|
347
|
+
(`sub` in the OIDC form plus `uid`, `client_id`, the prior actor nested), and
|
|
348
|
+
`getActorFromIntrospectionResult(result)` returns it as the same `TokenActor`, so a
|
|
349
|
+
resource server that introspects delegated tokens (to honour an ended agent session
|
|
350
|
+
at once) applies the same actor policy as one that verifies them locally. A
|
|
351
|
+
malformed `act` makes `introspectToken()` throw rather than drop it.
|
|
352
|
+
|
|
332
353
|
**Base access control only on the user and the current actor** (`guard.actor`, the
|
|
333
354
|
principal's `actor`). Prior actors (`prior_actor`, `actor.actor`) are informational:
|
|
334
355
|
RFC 8693 §4.1 forbids using them for access-control decisions.
|
package/dist/cli.cjs
CHANGED
|
@@ -89,7 +89,7 @@ var init_resolve_codegen_templates_directory = __esm({
|
|
|
89
89
|
|
|
90
90
|
// src/NextjsAppDirectoryPlugin/codegen-marker.ts
|
|
91
91
|
function getCodegenMarkerComment() {
|
|
92
|
-
const version2 = true ? "0.
|
|
92
|
+
const version2 = true ? "0.40.1" : "unknown";
|
|
93
93
|
return `${CODEGEN_MARKER_PREFIX}${version2}`;
|
|
94
94
|
}
|
|
95
95
|
function hasCodegenMarker(firstLine) {
|
|
@@ -20325,6 +20325,11 @@ var apiServerOrganizationMembershipVisibilityFieldsShape = {
|
|
|
20325
20325
|
organization_membership_visibility: organizationMembershipVisibilitySchema.optional()
|
|
20326
20326
|
};
|
|
20327
20327
|
|
|
20328
|
+
// ../app-definitions/dist/api-server-delegated-tokens.js
|
|
20329
|
+
var apiServerDelegatedTokenFieldsShape = {
|
|
20330
|
+
accept_delegated_tokens: external_exports.boolean().optional()
|
|
20331
|
+
};
|
|
20332
|
+
|
|
20328
20333
|
// ../app-definitions/dist/list-registry-apps-query-params.js
|
|
20329
20334
|
var list_apps_query_type = [
|
|
20330
20335
|
"all",
|
|
@@ -20359,7 +20364,9 @@ var schemaVaultsApiServerDefinitionSchema = external_exports.object({
|
|
|
20359
20364
|
// Dynamic-client policy: see api-server-dynamic-clients.ts
|
|
20360
20365
|
...apiServerDynamicClientFieldsShape,
|
|
20361
20366
|
// Organization membership lookups: see api-server-organization-membership-visibility.ts
|
|
20362
|
-
...apiServerOrganizationMembershipVisibilityFieldsShape
|
|
20367
|
+
...apiServerOrganizationMembershipVisibilityFieldsShape,
|
|
20368
|
+
// Delegated (RFC 8693 `act`) access tokens: see api-server-delegated-tokens.ts
|
|
20369
|
+
...apiServerDelegatedTokenFieldsShape
|
|
20363
20370
|
}).required({
|
|
20364
20371
|
api_server_id: true,
|
|
20365
20372
|
api_server_name: true,
|
|
@@ -23377,7 +23384,7 @@ async function main() {
|
|
|
23377
23384
|
return;
|
|
23378
23385
|
}
|
|
23379
23386
|
if (args.includes("--version") || args.includes("-v")) {
|
|
23380
|
-
console.log(`${PACKAGE_NAME}@${"0.
|
|
23387
|
+
console.log(`${PACKAGE_NAME}@${"0.40.1"}`);
|
|
23381
23388
|
return;
|
|
23382
23389
|
}
|
|
23383
23390
|
const command = findCommand(args, FLAGS_WITH_VALUES) ?? "codegen";
|
package/dist/index.d.ts
CHANGED
|
@@ -34,8 +34,8 @@ export { isUserInOrganization } from "./isUserInOrganization";
|
|
|
34
34
|
export type { IIsUserInOrganizationOptions } from "./isUserInOrganization";
|
|
35
35
|
export { listUserOrganizations, SUBJECT_TOKEN_HEADER_NAME, } from "./listUserOrganizations";
|
|
36
36
|
export type { IListUserOrganizationsOptions } from "./listUserOrganizations";
|
|
37
|
-
export { introspectToken, tokenIntrospectionResultSchema, } from "./introspectToken";
|
|
38
|
-
export type { IIntrospectTokenOptions, TokenIntrospectionResult, } from "./introspectToken";
|
|
37
|
+
export { getActorFromIntrospectionResult, introspectToken, tokenIntrospectionResultSchema, } from "./introspectToken";
|
|
38
|
+
export type { IIntrospectTokenOptions, IntrospectedTokenActor, TokenIntrospectionResult, } from "./introspectToken";
|
|
39
39
|
export { userDataSchema } from "@schemavaults/auth-common";
|
|
40
40
|
export type { UserData } from "@schemavaults/auth-common";
|
|
41
41
|
export { organizationIdSchema, organizationDefinitionSchema, isValidOrganizationID, getAuthServerOwnerOrganizationId, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATION_ID, isValidOrganizationMembershipRoleType, organizationMembershipRoleTypes, organizationMembershipRoleTypeSchema, } from "@schemavaults/auth-common/organizations";
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ export { resolveExpectedTokenAudience, normalizeAcceptedAudiences, } from "./res
|
|
|
27
27
|
export { isUserInOrganization } from "./isUserInOrganization";
|
|
28
28
|
export { listUserOrganizations, SUBJECT_TOKEN_HEADER_NAME, } from "./listUserOrganizations";
|
|
29
29
|
// RFC 7662 token introspection of this API server's access tokens
|
|
30
|
-
export { introspectToken, tokenIntrospectionResultSchema, } from "./introspectToken";
|
|
30
|
+
export { getActorFromIntrospectionResult, introspectToken, tokenIntrospectionResultSchema, } from "./introspectToken";
|
|
31
31
|
// Re-export user data types
|
|
32
32
|
export { userDataSchema } from "@schemavaults/auth-common";
|
|
33
33
|
// Re-export organization types
|
package/dist/index.js.map
C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,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEjF,gBAAgB;AAChB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAO1E,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,mCAAmC,CAAC;AAE3C,6EAA6E;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EACL,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AAGjC,kEAAkE;AAClE,OAAO,EACL,+BAA+B,EAC/B,eAAe,EACf,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAO3B,4BAA4B;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,+BAA+B;AAC/B,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,qBAAqB,EACrB,gCAAgC,EAChC,yCAAyC,EACzC,qCAAqC,EACrC,+BAA+B,EAC/B,oCAAoC,GACrC,MAAM,yCAAyC,CAAC;AAmBjD,8BAA8B;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,kDAAkD;AAClD,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAEjG,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
+
import { type TokenActor } from "@schemavaults/jwt";
|
|
1
2
|
import { type ApiServerId } from "@schemavaults/app-definitions";
|
|
2
3
|
import { z } from "zod";
|
|
4
|
+
/**
|
|
5
|
+
* The RFC 8693 §4.1 actor (`act`) of a delegated token, as the auth server's
|
|
6
|
+
* introspection response reports it: who acts on behalf of the token's user
|
|
7
|
+
* (e.g. an agent). The outermost actor is the current one; a nested `act` is
|
|
8
|
+
* the prior actor of a delegation chain and is informational only.
|
|
9
|
+
* {@link getActorFromIntrospectionResult} turns it into a `TokenActor`.
|
|
10
|
+
*/
|
|
11
|
+
export interface IntrospectedTokenActor {
|
|
12
|
+
/** The actor's OIDC subject `<auth_server_app_id>|<uid>`. */
|
|
13
|
+
sub: string;
|
|
14
|
+
/** The actor's platform id (the `<uid>` part of `sub`). */
|
|
15
|
+
uid: string;
|
|
16
|
+
/** The client app the actor acts through. */
|
|
17
|
+
client_id?: string;
|
|
18
|
+
/** The prior actor of a delegation chain (informational only). */
|
|
19
|
+
act?: IntrospectedTokenActor;
|
|
20
|
+
}
|
|
3
21
|
/**
|
|
4
22
|
* The auth server's RFC 7662 §2.2 introspection response. An inactive token
|
|
5
23
|
* is exactly `{ active: false }`: expired, revoked, issued for another API
|
|
@@ -20,8 +38,21 @@ export declare const tokenIntrospectionResultSchema: z.ZodUnion<readonly [z.ZodO
|
|
|
20
38
|
aud: z.ZodString;
|
|
21
39
|
iss: z.ZodString;
|
|
22
40
|
jti: z.ZodOptional<z.ZodString>;
|
|
41
|
+
service_account: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
act: z.ZodOptional<z.ZodType<IntrospectedTokenActor, unknown, z.core.$ZodTypeInternals<IntrospectedTokenActor, unknown>>>;
|
|
23
43
|
}, z.core.$loose>]>;
|
|
24
44
|
export type TokenIntrospectionResult = z.infer<typeof tokenIntrospectionResultSchema>;
|
|
45
|
+
/**
|
|
46
|
+
* The actor acting on behalf of the user of an introspected token, in the
|
|
47
|
+
* shape route guards and `decodeJWTsWithKeyManager()` report it (`uid`,
|
|
48
|
+
* `sub`, `client_id`, `prior_actor`), or null when the token is inactive or
|
|
49
|
+
* names no actor.
|
|
50
|
+
*
|
|
51
|
+
* This is the CURRENT actor: base access-control decisions on it and the
|
|
52
|
+
* token's top-level claims only. `prior_actor` is informational
|
|
53
|
+
* (RFC 8693 §4.1).
|
|
54
|
+
*/
|
|
55
|
+
export declare function getActorFromIntrospectionResult(result: TokenIntrospectionResult): TokenActor | null;
|
|
25
56
|
export interface IIntrospectTokenOptions {
|
|
26
57
|
/** The auth server URL (the issuer). */
|
|
27
58
|
auth_server_url: string;
|
package/dist/introspectToken.js
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
import { createJwksAccessProofToken } from "@schemavaults/jwt";
|
|
1
|
+
import { createJwksAccessProofToken, MAX_JWT_ACTOR_CLAIM_DEPTH, } from "@schemavaults/jwt";
|
|
2
2
|
import { apiServerIdSchema, } from "@schemavaults/app-definitions";
|
|
3
3
|
import { getOidcEndpointUrl, OAUTH_JWT_BEARER_CLIENT_ASSERTION_TYPE, } from "@schemavaults/auth-common";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
/**
|
|
6
|
+
* One level of an introspected actor chain, built level by level like the
|
|
7
|
+
* token's own `act` schema. Loose objects, so identity members a newer auth
|
|
8
|
+
* server adds do not break this SDK; a malformed actor still fails the whole
|
|
9
|
+
* response, so an agent can never pass for the user it acts for.
|
|
10
|
+
*/
|
|
11
|
+
function introspectedActorSchema(remaining_levels) {
|
|
12
|
+
const identity = {
|
|
13
|
+
sub: z.string().min(1),
|
|
14
|
+
uid: z.string().min(1),
|
|
15
|
+
client_id: z.string().optional(),
|
|
16
|
+
};
|
|
17
|
+
if (remaining_levels <= 1) {
|
|
18
|
+
return z.looseObject(identity);
|
|
19
|
+
}
|
|
20
|
+
return z.looseObject({
|
|
21
|
+
...identity,
|
|
22
|
+
act: introspectedActorSchema(remaining_levels - 1).optional(),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
5
25
|
/**
|
|
6
26
|
* The auth server's RFC 7662 §2.2 introspection response. An inactive token
|
|
7
27
|
* is exactly `{ active: false }`: expired, revoked, issued for another API
|
|
@@ -30,8 +50,42 @@ export const tokenIntrospectionResultSchema = z.union([
|
|
|
30
50
|
aud: z.string(),
|
|
31
51
|
iss: z.string(),
|
|
32
52
|
jti: z.string().optional(),
|
|
53
|
+
/**
|
|
54
|
+
* True when the user is a client app's service account: a machine
|
|
55
|
+
* identity (client_credentials grant), not a person. Absent otherwise.
|
|
56
|
+
*/
|
|
57
|
+
service_account: z.boolean().optional(),
|
|
58
|
+
/**
|
|
59
|
+
* The RFC 8693 actor of a delegated token (e.g. an agent acting for the
|
|
60
|
+
* user); absent otherwise. See {@link getActorFromIntrospectionResult}.
|
|
61
|
+
*/
|
|
62
|
+
act: introspectedActorSchema(MAX_JWT_ACTOR_CLAIM_DEPTH).optional(),
|
|
33
63
|
}),
|
|
34
64
|
]);
|
|
65
|
+
function introspectedActorToTokenActor(actor) {
|
|
66
|
+
return {
|
|
67
|
+
uid: actor.uid,
|
|
68
|
+
sub: actor.sub,
|
|
69
|
+
client_id: typeof actor.client_id === "string" ? actor.client_id : null,
|
|
70
|
+
prior_actor: actor.act ? introspectedActorToTokenActor(actor.act) : null,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The actor acting on behalf of the user of an introspected token, in the
|
|
75
|
+
* shape route guards and `decodeJWTsWithKeyManager()` report it (`uid`,
|
|
76
|
+
* `sub`, `client_id`, `prior_actor`), or null when the token is inactive or
|
|
77
|
+
* names no actor.
|
|
78
|
+
*
|
|
79
|
+
* This is the CURRENT actor: base access-control decisions on it and the
|
|
80
|
+
* token's top-level claims only. `prior_actor` is informational
|
|
81
|
+
* (RFC 8693 §4.1).
|
|
82
|
+
*/
|
|
83
|
+
export function getActorFromIntrospectionResult(result) {
|
|
84
|
+
if (!result.active || !result.act) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
return introspectedActorToTokenActor(result.act);
|
|
88
|
+
}
|
|
35
89
|
/**
|
|
36
90
|
* Asks the auth server whether an access token minted for this API server is
|
|
37
91
|
* still active (RFC 7662 token introspection).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"introspectToken.js","sourceRoot":"","sources":["../src/introspectToken.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"introspectToken.js","sourceRoot":"","sources":["../src/introspectToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAC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,IAAI,KAAK,IAAI;gBACb,OAAO,IAAI,IAAI;gBACf,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAC9B,CAAC;gBACD,MAAM,GAAG,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;YAC7B,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,yBAAyB;QAC3B,CAAC;QACD,MAAM,IAAI,KAAK,CACb,+DAA+D,QAAQ,CAAC,MAAM,GAAG,MAAM,GAAG,CAC3F,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,8BAA8B,CAAC,SAAS,CACrD,MAAM,QAAQ,CAAC,IAAI,EAAE,CACtB,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,0EAA0E,EAC1E,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CACxB,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC;AAED,eAAe,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schemavaults/auth-server-sdk",
|
|
3
3
|
"description": "TypeScript SDK for building authenticated endpoints/middlewares for the Auth Server and Resource Servers",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.40.1",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"zod": "4.6.7",
|
|
21
|
-
"@schemavaults/jwt": "0.16.
|
|
22
|
-
"@schemavaults/auth-common": "0.37.
|
|
23
|
-
"@schemavaults/app-definitions": "0.
|
|
21
|
+
"@schemavaults/jwt": "0.16.1",
|
|
22
|
+
"@schemavaults/auth-common": "0.37.1",
|
|
23
|
+
"@schemavaults/app-definitions": "0.17.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsc --project tsconfig.json && tsc-alias --project tsconfig.json && bun run copy-codegen-templates && bun run prepare-cli",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@typescript-eslint/eslint-plugin": "8.48.1",
|
|
47
47
|
"@typescript-eslint/parser": "8.48.1",
|
|
48
48
|
"esbuild": "0.27.3",
|
|
49
|
-
"@schemavaults/openapi-operations": "0.6.
|
|
49
|
+
"@schemavaults/openapi-operations": "0.6.1"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
177
|
"peerDependencies": {
|
|
178
|
-
"@schemavaults/openapi-operations": "0.6.
|
|
178
|
+
"@schemavaults/openapi-operations": "0.6.1"
|
|
179
179
|
},
|
|
180
180
|
"peerDependenciesMeta": {
|
|
181
181
|
"@schemavaults/openapi-operations": {
|