Skip to main content

Class: ExpressAdapter

Hierarchy

  • AbstractAdapter<express>

    ExpressAdapter

Accessors

keycloakConnector

get keycloakConnector(): KeycloakConnector<express>

Returns

KeycloakConnector<express>

Defined in

packages/backend/server/src/adapter/express-adapter.ts:203

Methods

buildConnectorRequest

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

Type parameters

Name
RouteConfig

Parameters

NameType
requestRequest<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
routeConfigundefined | RouteConfig

Returns

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

Overrides

AbstractAdapter.buildConnectorRequest

Defined in

packages/backend/server/src/adapter/express-adapter.ts:37


handleResponse

handleResponse(connectorResponse, req, res, next): Promise<void>

Parameters

NameType
connectorResponseConnectorResponse<express>
reqRequest<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
resResponse<any, Record<string, any>, number>
nextNextFunction

Returns

Promise<void>

Overrides

AbstractAdapter.handleResponse

Defined in

packages/backend/server/src/adapter/express-adapter.ts:54


onRequest

onRequest<RouteConfig>(routeConfig, ...args): Promise<void>

Type parameters

NameType
RouteConfigKeycloakRouteConfig

Parameters

NameType
routeConfigundefined | RouteConfig
...args[req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>, number>, next: NextFunction]

Returns

Promise<void>

Defined in

packages/backend/server/src/adapter/express-adapter.ts:165


registerRoute

registerRoute(options, connectorCallback): void

Parameters

NameType
optionsRouteRegistrationOptions
connectorCallbackConnectorCallback<express>

Returns

void

Overrides

AbstractAdapter.registerRoute

Defined in

packages/backend/server/src/adapter/express-adapter.ts:115


init

init(app, customConfig): Promise<{ config: KeycloakConnectorConfigBase ; registerAuthPlugin: (plugin: AbstractAuthPlugin) => Promise<undefined> }>

Parameters

NameType
appExpress
customConfigKeycloakConnectorConfigCustom

Returns

Promise<{ config: KeycloakConnectorConfigBase ; registerAuthPlugin: (plugin: AbstractAuthPlugin) => Promise<undefined> }>

Defined in

packages/backend/server/src/adapter/express-adapter.ts:207