Skip to main content

Class: FastifyAdapter

Hierarchy

  • AbstractAdapter<fastify>

    FastifyAdapter

Constructors

constructor

new FastifyAdapter(fastify, customConfig): FastifyAdapter

Parameters

NameType
fastifyFastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>
customConfigKeycloakConnectorConfigCustom

Returns

FastifyAdapter

Overrides

AbstractAdapter&lt;SupportedServers.fastify&gt;.constructor

Defined in

packages/backend/server/src/adapter/fastify-adapter.ts:26

Methods

buildConnectorRequest

buildConnectorRequest(request): Promise<ConnectorRequest<Record<string, unknown>, Record<string, unknown>>>

Parameters

NameType
requestFastifyRequest<RouteGenericInterface, RawServerDefault, IncomingMessage, FastifySchema, FastifyTypeProviderDefault, unknown, FastifyBaseLogger, ResolveFastifyRequestType<FastifyTypeProviderDefault, FastifySchema, RouteGenericInterface>>

Returns

Promise<ConnectorRequest<Record<string, unknown>, Record<string, unknown>>>

Overrides

AbstractAdapter.buildConnectorRequest

Defined in

packages/backend/server/src/adapter/fastify-adapter.ts:36


handleResponse

handleResponse(connectorResponse, reply): Promise<void>

Parameters

NameType
connectorResponseConnectorResponse<fastify>
replyFastifyReply<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, RouteGenericInterface, unknown, FastifySchema, FastifyTypeProviderDefault, unknown>

Returns

Promise<void>

Overrides

AbstractAdapter.handleResponse

Defined in

packages/backend/server/src/adapter/fastify-adapter.ts:52


registerRoute

registerRoute(options, connectorCallback): void

Parameters

NameType
optionsRouteRegistrationOptions
connectorCallbackConnectorCallback<fastify>

Returns

void

Overrides

AbstractAdapter.registerRoute

Defined in

packages/backend/server/src/adapter/fastify-adapter.ts:88