@cedarjs/graphql-server 7.0.0-canary.3083 → 7.0.0-canary.3086

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.
@@ -1,6 +1,32 @@
1
- import type { GraphQLYogaOptions } from './types.js';
2
- export declare const createGraphQLYoga: ({ healthCheckId, loggerConfig, context, getCurrentUser, onException, generateGraphiQLHeader, extraPlugins, authDecoder, cors, services, sdls, directives, armorConfig, allowedOperations, allowIntrospection, allowGraphiQL, defaultError, graphiQLEndpoint, schemaOptions, realtime, trustedDocuments, openTelemetryOptions, includeScalars, }: GraphQLYogaOptions) => Promise<{
3
- yoga: ServerAdapter<TServerContext, import("graphql-yoga").YogaServer<TServerContext, TUserContext>>;
4
- logger: import("@cedarjs/api/logger").Logger;
5
- }>;
1
+ import type { FastifyReply, FastifyRequest } from 'fastify';
2
+ import type { YogaServerInstance } from 'graphql-yoga';
3
+ import type { Logger } from '@cedarjs/api/logger';
4
+ import type { CedarRequestContext } from '@cedarjs/api/runtime';
5
+ import type { GraphQLYogaOptions, CedarGraphQLContext } from './types.js';
6
+ /**
7
+ * The server context Yoga is created with. The Fastify entry point adds the
8
+ * request and reply it's handling; every entry point adds `cedarContext`.
9
+ */
10
+ type CedarYogaServerContext = {
11
+ req: FastifyRequest;
12
+ reply: FastifyReply;
13
+ } & CedarGraphQLContext;
14
+ /**
15
+ * A configured Cedar GraphQL server: the Yoga instance, the logger it logs
16
+ * with, and the builder for the request context `yoga.handle` needs to be
17
+ * given. They belong together: the context the builder produces carries the
18
+ * auth state that this instance's plugins read.
19
+ */
20
+ export interface CedarGraphQLServer {
21
+ yoga: YogaServerInstance<CedarYogaServerContext, Record<string, never>>;
22
+ logger: Logger;
23
+ /**
24
+ * Builds the `cedarContext` to hand `yoga.handle` for a request, with the
25
+ * auth state this server's `getCurrentUser` needs already resolved. Call
26
+ * it before `yoga.handle`, which reads the request body.
27
+ */
28
+ buildRequestContext: (request: Request) => Promise<CedarRequestContext>;
29
+ }
30
+ export declare const createGraphQLYoga: ({ healthCheckId, loggerConfig, context, getCurrentUser, onException, generateGraphiQLHeader, extraPlugins, authDecoder, cors, services, sdls, directives, armorConfig, allowedOperations, allowIntrospection, allowGraphiQL, defaultError, graphiQLEndpoint, schemaOptions, realtime, trustedDocuments, openTelemetryOptions, includeScalars, }: GraphQLYogaOptions) => Promise<CedarGraphQLServer>;
31
+ export {};
6
32
  //# sourceMappingURL=createGraphQLYoga.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createGraphQLYoga.d.ts","sourceRoot":"","sources":["../src/createGraphQLYoga.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,kBAAkB,EAAuB,MAAM,YAAY,CAAA;AAEzE,eAAO,MAAM,iBAAiB,GAAU,iVAwBrC,kBAAkB;;;EAuLpB,CAAA"}
1
+ {"version":3,"file":"createGraphQLYoga.d.ts","sourceRoot":"","sources":["../src/createGraphQLYoga.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAQ3D,OAAO,KAAK,EAAU,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAyB/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAEzE;;;GAGG;AACH,KAAK,sBAAsB,GAAG;IAC5B,GAAG,EAAE,cAAc,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;CACpB,GAAG,mBAAmB,CAAA;AAEvB;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;IACvE,MAAM,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAA;CACxE;AAED,eAAO,MAAM,iBAAiB,GAAU,iVAwBrC,kBAAkB,KAAG,OAAO,CAAC,kBAAkB,CAgMjD,CAAA"}
@@ -6,6 +6,7 @@ import {
6
6
  createYoga,
7
7
  useExecutionCancellation
8
8
  } from "graphql-yoga";
9
+ import { buildCedarContext } from "@cedarjs/api/runtime";
9
10
  import { mapRwCorsOptionsToYoga } from "./cors.js";
10
11
  import { makeDirectivesForPlugin } from "./directives/makeDirectives.js";
11
12
  import { configureGraphiQLPlayground } from "./graphiql.js";
@@ -22,6 +23,7 @@ import {
22
23
  useCedarPopulateContext,
23
24
  useCedarTrustedDocuments
24
25
  } from "./plugins/index.js";
26
+ import { resolveServerAuthState } from "./serverAuthState.js";
25
27
  import { makeSubscriptions } from "./subscriptions/makeSubscriptions.js";
26
28
  const createGraphQLYoga = async ({
27
29
  healthCheckId = "yoga",
@@ -94,7 +96,7 @@ const createGraphQLYoga = async ({
94
96
  if (disableIntrospection) {
95
97
  plugins.push(useDisableIntrospection());
96
98
  }
97
- plugins.push(useCedarAuthContext(getCurrentUser, authDecoder));
99
+ plugins.push(useCedarAuthContext(getCurrentUser));
98
100
  plugins.push(useCedarGlobalContextSetter());
99
101
  if (context) {
100
102
  plugins.push(useCedarPopulateContext(context));
@@ -160,7 +162,17 @@ const createGraphQLYoga = async ({
160
162
  return mapRwCorsOptionsToYoga(cors, requestOrigin);
161
163
  }
162
164
  });
163
- return { yoga, logger };
165
+ const buildRequestContext = async (request) => {
166
+ const cedarContext = await buildCedarContext(request);
167
+ return {
168
+ ...cedarContext,
169
+ serverAuthState: await resolveServerAuthState(
170
+ { authDecoder, getCurrentUser },
171
+ request
172
+ )
173
+ };
174
+ };
175
+ return { yoga, logger, buildRequestContext };
164
176
  } catch (e) {
165
177
  if (onException) {
166
178
  onException();
@@ -1,7 +1,7 @@
1
1
  import * as cookie from "cookie";
2
- import { getAuthenticationContext } from "@cedarjs/api";
3
2
  import { getAsyncStoreInstance } from "@cedarjs/context/dist/store";
4
3
  import { createGraphQLYoga } from "../createGraphQLYoga.js";
4
+ import { resolveServerAuthState } from "../serverAuthState.js";
5
5
  function lambdaQueryToSearchParams(event) {
6
6
  const query = new URLSearchParams();
7
7
  if (event.multiValueQueryStringParameters) {
@@ -107,11 +107,11 @@ const createGraphQLHandler = ({
107
107
  params: event.pathParameters ?? {},
108
108
  query: lambdaQueryToSearchParams(event),
109
109
  cookies: parseLambdaCookies(event),
110
- serverAuthState: await getAuthenticationContext({
111
- authDecoder,
110
+ serverAuthState: await resolveServerAuthState(
111
+ { authDecoder, getCurrentUser },
112
112
  event,
113
- context: requestContext
114
- })
113
+ requestContext
114
+ )
115
115
  }
116
116
  }
117
117
  );
@@ -1,9 +1,8 @@
1
1
  import type { Plugin } from 'graphql-yoga';
2
- import type { Decoder } from '@cedarjs/api';
3
2
  import type { CedarGraphQLContext, GraphQLHandlerOptions } from '../types.js';
4
3
  /**
5
4
  * Envelop plugin for injecting the current user into the GraphQL Context,
6
5
  * based on custom getCurrentUser function.
7
6
  */
8
- export declare const useCedarAuthContext: (getCurrentUser: GraphQLHandlerOptions["getCurrentUser"], authDecoder?: Decoder | Decoder[]) => Plugin<CedarGraphQLContext>;
7
+ export declare const useCedarAuthContext: (getCurrentUser: GraphQLHandlerOptions["getCurrentUser"]) => Plugin<CedarGraphQLContext>;
9
8
  //# sourceMappingURL=useCedarAuthContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCedarAuthContext.d.ts","sourceRoot":"","sources":["../../src/plugins/useCedarAuthContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,EAAsB,OAAO,EAAE,MAAM,cAAc,CAAA;AAG/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAE7E;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,gBAAgB,qBAAqB,CAAC,gBAAgB,CAAC,EACvD,cAAc,OAAO,GAAG,OAAO,EAAE,KAChC,MAAM,CAAC,mBAAmB,CA2C5B,CAAA"}
1
+ {"version":3,"file":"useCedarAuthContext.d.ts","sourceRoot":"","sources":["../../src/plugins/useCedarAuthContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAI1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAE7E;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,gBAAgB,qBAAqB,CAAC,gBAAgB,CAAC,KACtD,MAAM,CAAC,mBAAmB,CA4C5B,CAAA"}
@@ -1,10 +1,9 @@
1
- import { hasAuthDecoder } from "@cedarjs/api";
2
- const useCedarAuthContext = (getCurrentUser, authDecoder) => {
1
+ const useCedarAuthContext = (getCurrentUser) => {
3
2
  return {
4
3
  async onContextBuilding({ context, extendContext }) {
5
- if (!context.cedarContext && hasAuthDecoder(authDecoder)) {
4
+ if (!context.cedarContext && getCurrentUser) {
6
5
  throw new Error(
7
- "Auth state is resolved when a request enters Cedar and passed on the GraphQL context, but this context has no `cedarContext`. Whatever is invoking `yoga.handle` needs to build one with `buildCedarContext` from `@cedarjs/api/runtime` and pass it as `cedarContext`."
6
+ "Auth state is resolved when a request enters Cedar and passed on the GraphQL context, but this context has no `cedarContext`. Whatever is invoking `yoga.handle` needs to build one with the `buildRequestContext` returned by `createGraphQLYoga` and pass it as `cedarContext`."
8
7
  );
9
8
  }
10
9
  const authContext = context.cedarContext?.serverAuthState;
@@ -0,0 +1,25 @@
1
+ import type { APIGatewayProxyEvent, Context as LambdaContext } from 'aws-lambda';
2
+ import type { AuthContextPayload } from '@cedarjs/api';
3
+ import type { GraphQLYogaOptions } from './types.js';
4
+ export type ServerAuthOptions = Pick<GraphQLYogaOptions, 'authDecoder' | 'getCurrentUser'>;
5
+ /**
6
+ * Resolves the auth state a GraphQL request carries: the token and provider
7
+ * type from its `Authorization`/`auth-provider` headers or cookies, plus what
8
+ * the configured decoders make of the token. `getCurrentUser` turns that into
9
+ * the current user.
10
+ *
11
+ * `getCurrentUser` is the only consumer, so when a server has none there is
12
+ * nothing to resolve for. That also spares a server without auth from failing
13
+ * a request that carries a stray `auth-provider` header but no usable
14
+ * `Authorization` header.
15
+ *
16
+ * Decoders are optional. A project whose tokens can't be decoded locally, such
17
+ * as opaque OAuth access tokens, has `getCurrentUser` validate the raw token
18
+ * it's handed instead, and the decoded value it receives is `null`.
19
+ *
20
+ * On fetch-native paths this has to run before the GraphQL server reads the
21
+ * request body: the payload carries a Lambda-style event built from the
22
+ * `Request`, and building it reads the body.
23
+ */
24
+ export declare function resolveServerAuthState({ authDecoder, getCurrentUser }: ServerAuthOptions, event: APIGatewayProxyEvent | Request, context?: LambdaContext): Promise<AuthContextPayload | undefined>;
25
+ //# sourceMappingURL=serverAuthState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverAuthState.d.ts","sourceRoot":"","sources":["../src/serverAuthState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAGhF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,kBAAkB,EAClB,aAAa,GAAG,gBAAgB,CACjC,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,sBAAsB,CAC1C,EAAE,WAAW,EAAE,cAAc,EAAE,EAAE,iBAAiB,EAClD,KAAK,EAAE,oBAAoB,GAAG,OAAO,EACrC,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAMzC"}
@@ -0,0 +1,10 @@
1
+ import { getAuthenticationContext } from "@cedarjs/api";
2
+ async function resolveServerAuthState({ authDecoder, getCurrentUser }, event, context) {
3
+ if (!getCurrentUser) {
4
+ return void 0;
5
+ }
6
+ return getAuthenticationContext({ authDecoder, event, context });
7
+ }
8
+ export {
9
+ resolveServerAuthState
10
+ };
package/dist/types.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { GraphQLArmorConfig } from '@escape.tech/graphql-armor-types';
3
3
  import type { IExecutableSchemaDefinition } from '@graphql-tools/schema';
4
4
  import type { APIGatewayProxyEvent, Context as LambdaContext } from 'aws-lambda';
5
5
  import type { GraphQLObjectType, GraphQLInterfaceType, DocumentNode } from 'graphql';
6
- import type { Plugin } from 'graphql-yoga';
6
+ import type { GraphQLParams, Plugin } from 'graphql-yoga';
7
7
  import type { AuthContextPayload, CorsConfig, Decoder } from '@cedarjs/api';
8
8
  import type { CedarRequestContext } from '@cedarjs/api/runtime';
9
9
  import type { CedarRealtimeOptions } from '@cedarjs/realtime';
@@ -51,6 +51,11 @@ export interface CedarGraphQLContext {
51
51
  event?: APIGatewayProxyEvent;
52
52
  requestContext?: LambdaContext | undefined;
53
53
  currentUser?: ThenArg<ReturnType<GetCurrentUser>> | AuthContextPayload | null;
54
+ /**
55
+ * The GraphQL request's query, variables and operation name, as Yoga parsed
56
+ * them. Available to a `context` function, which runs after parsing.
57
+ */
58
+ params: GraphQLParams;
54
59
  [index: string]: unknown;
55
60
  }
56
61
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAC1E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AACxE,OAAO,KAAK,E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AChC,kBAAkB,EAClB,eAAe,GAAG,wBAAwB,CAC3C,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/graphql-server",
3
- "version": "7.0.0-canary.3083",
3
+ "version": "7.0.0-canary.3086",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -32,8 +32,8 @@
32
32
  "test:watch": "yarn test --watch"
33
33
  },
34
34
  "dependencies": {
35
- "@cedarjs/api": "7.0.0-canary.3083",
36
- "@cedarjs/context": "7.0.0-canary.3083",
35
+ "@cedarjs/api": "7.0.0-canary.3086",
36
+ "@cedarjs/context": "7.0.0-canary.3086",
37
37
  "@envelop/core": "5.6.0",
38
38
  "@envelop/disable-introspection": "6.0.0",
39
39
  "@envelop/filter-operation-type": "6.0.0",
@@ -53,8 +53,8 @@
53
53
  "uuid": "11.1.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@cedarjs/framework-tools": "7.0.0-canary.3083",
57
- "@cedarjs/realtime": "7.0.0-canary.3083",
56
+ "@cedarjs/framework-tools": "7.0.0-canary.3086",
57
+ "@cedarjs/realtime": "7.0.0-canary.3086",
58
58
  "@envelop/types": "5.2.1",
59
59
  "@escape.tech/graphql-armor-types": "0.7.0",
60
60
  "@types/aws-lambda": "8.10.162",