Class: FastifyAdapter
Hierarchy
-
AbstractAdapter
<fastify
>↳
FastifyAdapter
Constructors
constructor
• new FastifyAdapter(fastify
, customConfig
): FastifyAdapter
Parameters
Name | Type |
---|---|
fastify | FastifyInstance <RawServerDefault , IncomingMessage , ServerResponse <IncomingMessage >, FastifyBaseLogger , FastifyTypeProviderDefault > |
customConfig | KeycloakConnectorConfigCustom |
Returns
Overrides
AbstractAdapter<SupportedServers.fastify>.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
Name | Type |
---|---|
request | FastifyRequest <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
Name | Type |
---|---|
connectorResponse | ConnectorResponse <fastify > |
reply | FastifyReply <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
Name | Type |
---|---|
options | RouteRegistrationOptions |
connectorCallback | ConnectorCallback <fastify > |
Returns
void
Overrides
AbstractAdapter.registerRoute