@schemavaults/auth-server-sdk 0.31.4 → 0.32.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 CHANGED
@@ -48,6 +48,46 @@ changes, and only for tokens whose header names one of the listed URLs
48
48
  (`resolveExpectedTokenAudience()`). Tokens with any other `aud` fail as
49
49
  before.
50
50
 
51
+ ## Introspecting access tokens (RFC 7662)
52
+
53
+ Local verification (route guards, `decodeJWTsWithKeyManager`) proves a token is
54
+ authentic and unexpired, but cannot see what happened after it was issued: a
55
+ logout, a password reset, a disabled account, the user de-authorizing the client
56
+ app, or the app being disconnected from your API server. `introspectToken()` asks
57
+ the auth server, authenticating with your JWKS access key (`private_key_jwt`: a
58
+ fresh single-use JWKS access assertion per call):
59
+
60
+ ```ts
61
+ import { introspectToken, loadJwksAccessPrivateKey, getAuthServerUrl } from "@schemavaults/auth-server-sdk";
62
+
63
+ const result = await introspectToken({
64
+ auth_server_url: getAuthServerUrl(),
65
+ api_server_id: process.env.SCHEMAVAULTS_API_SERVER_ID!,
66
+ jwks_access_private_key: await loadJwksAccessPrivateKey(),
67
+ token: accessToken,
68
+ });
69
+ if (result.active) {
70
+ result.uid; // platform user id
71
+ result.sub; // OIDC subject `<auth_server_app_id>|<uid>`
72
+ result.client_id; // the client app the token was issued to
73
+ result.scope; // granted scope, if any
74
+ }
75
+ ```
76
+
77
+ Only access tokens minted for your API server (its id, or one of its RFC 8707
78
+ resource URLs, as `aud`) can come back active; everything else is `{ active: false }`.
79
+ A refused request (e.g. a JWKS access key that is not your active one) throws.
80
+ Each call is a round trip to the auth server, so reserve it for requests where
81
+ revocation must be honoured immediately.
82
+
83
+ ## `UserData.sub`
84
+
85
+ `UserData.sub` is the OIDC subject `<auth_server_app_id>|<uid>` (the value the
86
+ id_token, userinfo and introspection report); use `uid` for the platform user id.
87
+ The access tokens themselves still carry the bare uid as `sub`, so older SDK
88
+ versions keep verifying them; `userDataSchema` upgrades a bare-uuid `sub` with
89
+ `SCHEMAVAULTS_AUTH_SERVER_APP_ID` (default `schemavaults-auth`).
90
+
51
91
  ## Auth resolvers for `@schemavaults/openapi-operations`
52
92
 
53
93
  Resource servers that declare their API with
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 version = true ? "0.31.4" : "unknown";
92
+ const version = true ? "0.32.0" : "unknown";
93
93
  return `${CODEGEN_MARKER_PREFIX}${version}`;
94
94
  }
95
95
  function hasCodegenMarker(firstLine) {
@@ -331,7 +331,7 @@ async function main() {
331
331
  return;
332
332
  }
333
333
  if (args.includes("--version") || args.includes("-v")) {
334
- console.log(`${PACKAGE_NAME}@${"0.31.4"}`);
334
+ console.log(`${PACKAGE_NAME}@${"0.32.0"}`);
335
335
  return;
336
336
  }
337
337
  const command = args.find((arg) => !arg.startsWith("-")) ?? "codegen";
package/dist/index.d.ts CHANGED
@@ -30,6 +30,8 @@ export { decodeJWTsWithKeyManager } from "./decode-jwts-with-key-manager";
30
30
  export type { IDecodeJWTsWithKeyManagerOutput, DecodeJWTsWithKeyManagerOptions, } from "./decode-jwts-with-key-manager";
31
31
  export { resolveExpectedTokenAudience, normalizeAcceptedAudiences, } from "./resolve-expected-token-audience";
32
32
  export { isUserInOrganization } from "./isUserInOrganization";
33
+ export { introspectToken, tokenIntrospectionResultSchema, } from "./introspectToken";
34
+ export type { IIntrospectTokenOptions, TokenIntrospectionResult, } from "./introspectToken";
33
35
  export { userDataSchema } from "@schemavaults/auth-common";
34
36
  export type { UserData } from "@schemavaults/auth-common";
35
37
  export { organizationIdSchema, organizationDefinitionSchema, isValidOrganizationID, getAuthServerOwnerOrganizationId, DEFAULT_AUTH_SERVER_OWNER_ORGANIZATION_ID, isValidOrganizationMembershipRoleType, organizationMembershipRoleTypes, organizationMembershipRoleTypeSchema, } from "@schemavaults/auth-common/organizations";
package/dist/index.js CHANGED
@@ -25,6 +25,8 @@ export { decodeJWTsWithKeyManager } from "./decode-jwts-with-key-manager";
25
25
  export { resolveExpectedTokenAudience, normalizeAcceptedAudiences, } from "./resolve-expected-token-audience";
26
26
  // Check user organization membership from auth server (for resource servers)
27
27
  export { isUserInOrganization } from "./isUserInOrganization";
28
+ // RFC 7662 token introspection of this API server's access tokens
29
+ export { introspectToken, tokenIntrospectionResultSchema, } from "./introspectToken";
28
30
  // Re-export user data types
29
31
  export { userDataSchema } from "@schemavaults/auth-common";
30
32
  // Re-export organization types
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAG7B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,OAAO,EACL,qBAAqB,EACrB,cAAc,GACf,MAAM,qCAAqC,CAAC;AAG7C,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAEpC,iBAAiB;AACjB,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,IAAI,0BAA0B,EACzD,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,yBAAyB;AACzB,OAAO,EACL,kCAAkC,EAClC,kCAAkC,IAAI,kCAAkC,EACzE,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,eAAe;AACf,OAAO,EACL,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,OAAO,IAA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AC9B,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"}
@@ -0,0 +1,56 @@
1
+ import { type ApiServerId } from "@schemavaults/app-definitions";
2
+ import { z } from "zod";
3
+ /**
4
+ * The auth server's RFC 7662 §2.2 introspection response. An inactive token
5
+ * is exactly `{ active: false }`: expired, revoked, issued for another API
6
+ * server and malformed tokens are indistinguishable.
7
+ */
8
+ export declare const tokenIntrospectionResultSchema: z.ZodUnion<readonly [z.ZodObject<{
9
+ active: z.ZodLiteral<false>;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ active: z.ZodLiteral<true>;
12
+ scope: z.ZodOptional<z.ZodString>;
13
+ client_id: z.ZodString;
14
+ username: z.ZodOptional<z.ZodString>;
15
+ token_type: z.ZodOptional<z.ZodLiteral<"Bearer">>;
16
+ exp: z.ZodNumber;
17
+ iat: z.ZodNumber;
18
+ sub: z.ZodString;
19
+ uid: z.ZodString;
20
+ aud: z.ZodString;
21
+ iss: z.ZodString;
22
+ jti: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$loose>]>;
24
+ export type TokenIntrospectionResult = z.infer<typeof tokenIntrospectionResultSchema>;
25
+ export interface IIntrospectTokenOptions {
26
+ /** The auth server URL (the issuer). */
27
+ auth_server_url: string;
28
+ /** The calling API server, which the token must have been minted for. */
29
+ api_server_id: ApiServerId;
30
+ /** The API server's JWKS access private key (see `loadJwksAccessPrivateKey()`). */
31
+ jwks_access_private_key: CryptoKey;
32
+ /** The access token to introspect. */
33
+ token: string;
34
+ /** Defaults to the global `fetch`. */
35
+ fetch?: typeof fetch;
36
+ }
37
+ /**
38
+ * Asks the auth server whether an access token minted for this API server is
39
+ * still active (RFC 7662 token introspection).
40
+ *
41
+ * Local verification (the route guards, `decodeJWTsWithKeyManager`) proves a
42
+ * token is authentic and unexpired, but cannot see what happened since it was
43
+ * issued: a logout, a password reset, a disabled account, the user
44
+ * de-authorizing the client app, or the app being disconnected from this API
45
+ * server. Introspection can, at the cost of a round trip to the auth server.
46
+ *
47
+ * The API server authenticates with `private_key_jwt`: a fresh single-use
48
+ * JWKS access assertion (`createJwksAccessProofToken()`) per call, signed with
49
+ * its JWKS access key. Only access tokens minted for this API server (its id,
50
+ * or one of its RFC 8707 resource URLs, as `aud`) can come back active.
51
+ *
52
+ * @throws when the auth server refuses the request (e.g. 401 for a JWKS access
53
+ * key that is not the API server's active one) or answers unexpectedly.
54
+ */
55
+ export declare function introspectToken({ auth_server_url, api_server_id, jwks_access_private_key, token, fetch: fetchImpl, }: IIntrospectTokenOptions): Promise<TokenIntrospectionResult>;
56
+ export default introspectToken;
@@ -0,0 +1,101 @@
1
+ import { createJwksAccessProofToken } from "@schemavaults/jwt";
2
+ import { apiServerIdSchema, } from "@schemavaults/app-definitions";
3
+ import { getOidcEndpointUrl, OAUTH_JWT_BEARER_CLIENT_ASSERTION_TYPE, } from "@schemavaults/auth-common";
4
+ import { z } from "zod";
5
+ /**
6
+ * The auth server's RFC 7662 §2.2 introspection response. An inactive token
7
+ * is exactly `{ active: false }`: expired, revoked, issued for another API
8
+ * server and malformed tokens are indistinguishable.
9
+ */
10
+ export const tokenIntrospectionResultSchema = z.union([
11
+ z.object({ active: z.literal(false) }),
12
+ z.looseObject({
13
+ active: z.literal(true),
14
+ /** Space-delimited granted scope; absent for plain OAuth 2.1 grants. */
15
+ scope: z.string().optional(),
16
+ /** The client application the token was issued to. */
17
+ client_id: z.string(),
18
+ /** The user's email; only when the `email` scope was granted. */
19
+ username: z.string().optional(),
20
+ token_type: z.literal("Bearer").optional(),
21
+ /** Expiry, seconds since the Unix epoch. */
22
+ exp: z.number().int(),
23
+ /** Issued at, seconds since the Unix epoch. */
24
+ iat: z.number().int(),
25
+ /** OIDC subject `<auth_server_app_id>|<uid>`. */
26
+ sub: z.string(),
27
+ /** The platform user id. */
28
+ uid: z.string(),
29
+ /** The API server id, or the RFC 8707 resource URL the token was minted for. */
30
+ aud: z.string(),
31
+ iss: z.string(),
32
+ jti: z.string().optional(),
33
+ }),
34
+ ]);
35
+ /**
36
+ * Asks the auth server whether an access token minted for this API server is
37
+ * still active (RFC 7662 token introspection).
38
+ *
39
+ * Local verification (the route guards, `decodeJWTsWithKeyManager`) proves a
40
+ * token is authentic and unexpired, but cannot see what happened since it was
41
+ * issued: a logout, a password reset, a disabled account, the user
42
+ * de-authorizing the client app, or the app being disconnected from this API
43
+ * server. Introspection can, at the cost of a round trip to the auth server.
44
+ *
45
+ * The API server authenticates with `private_key_jwt`: a fresh single-use
46
+ * JWKS access assertion (`createJwksAccessProofToken()`) per call, signed with
47
+ * its JWKS access key. Only access tokens minted for this API server (its id,
48
+ * or one of its RFC 8707 resource URLs, as `aud`) can come back active.
49
+ *
50
+ * @throws when the auth server refuses the request (e.g. 401 for a JWKS access
51
+ * key that is not the API server's active one) or answers unexpectedly.
52
+ */
53
+ export async function introspectToken({ auth_server_url, api_server_id, jwks_access_private_key, token, fetch: fetchImpl = fetch, }) {
54
+ if (!apiServerIdSchema.safeParse(api_server_id).success) {
55
+ throw new TypeError("Invalid API server ID!");
56
+ }
57
+ if (typeof token !== "string" || token.length === 0) {
58
+ throw new TypeError("Expected a token to introspect!");
59
+ }
60
+ const client_assertion = await createJwksAccessProofToken({
61
+ api_server_id,
62
+ auth_server_url,
63
+ private_key: jwks_access_private_key,
64
+ });
65
+ const response = await fetchImpl(getOidcEndpointUrl(auth_server_url, "introspection"), {
66
+ method: "POST",
67
+ headers: new Headers({
68
+ "Content-Type": "application/x-www-form-urlencoded",
69
+ Accept: "application/json",
70
+ }),
71
+ body: new URLSearchParams({
72
+ token,
73
+ client_id: api_server_id,
74
+ client_assertion_type: OAUTH_JWT_BEARER_CLIENT_ASSERTION_TYPE,
75
+ client_assertion,
76
+ }).toString(),
77
+ });
78
+ if (!response.ok) {
79
+ let detail = "";
80
+ try {
81
+ const body = await response.json();
82
+ if (typeof body === "object" &&
83
+ body !== null &&
84
+ "error" in body &&
85
+ typeof body.error === "string") {
86
+ detail = `: ${body.error}`;
87
+ }
88
+ }
89
+ catch {
90
+ // Not a JSON error body.
91
+ }
92
+ throw new Error(`Token introspection was refused by the auth server (status: ${response.status}${detail})`);
93
+ }
94
+ const parsed = tokenIntrospectionResultSchema.safeParse(await response.json());
95
+ if (!parsed.success) {
96
+ throw new Error("Received an unexpected token introspection response from the auth server", { cause: parsed.error });
97
+ }
98
+ return parsed.data;
99
+ }
100
+ export default introspectToken;
101
+ //# sourceMappingURL=introspectToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"introspectToken.js","sourceRoot":"","sources":["../src/introspectToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAEL,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,kBAAkB,EAClB,sCAAsC,GACvC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC;IACpD,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;IACtC,CAAC,CAAC,WAAW,CAAC;QACZ,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;QACvB,wEAAwE;QACxE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,sDAAsD;QACtD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,iEAAiE;QACjE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,UAAU,EAAE,CAAC,CAAC,OAAO,CAA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AM,EAAE,kBAAkB;SAC3B,CAAC;QACF,IAAI,EAAE,IAAI,eAAe,CAAC;YACxB,KAAK;YACL,SAAS,EAAE,aAAa;YACxB,qBAAqB,EAAE,sCAAsC;YAC7D,gBAAgB;SACjB,CAAC,CAAC,QAAQ,EAAE;KACd,CACF,CAAC;IAEF,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,IAAI,MAAM,GAAW,EAAE,CAAC;QACxB,IAAI,CAAC;YACH,MAAM,IAAI,GAAY,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAC5C,IACE,OAAO,IAAI,KAAK,QAAQ;gBACxB,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.31.4",
4
+ "version": "0.32.0",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
7
7
  "repository": {
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "zod": "4.4.3",
21
- "@schemavaults/jwt": "0.13.14",
22
- "@schemavaults/auth-common": "0.30.0",
21
+ "@schemavaults/jwt": "0.14.0",
22
+ "@schemavaults/auth-common": "0.31.0",
23
23
  "@schemavaults/app-definitions": "0.14.0"
24
24
  },
25
25
  "scripts": {
@@ -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.4.2"
49
+ "@schemavaults/openapi-operations": "0.4.3"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
@@ -160,7 +160,7 @@
160
160
  }
161
161
  },
162
162
  "peerDependencies": {
163
- "@schemavaults/openapi-operations": "0.4.2"
163
+ "@schemavaults/openapi-operations": "0.4.3"
164
164
  },
165
165
  "peerDependenciesMeta": {
166
166
  "@schemavaults/openapi-operations": {