Module: lib/operations/signatures

Module with api signatures endpoint handlers

Source:
Tutorials:

Methods

(inner) decodeSignature(req, res, operationId, callback)

Decodes a Whiteflag authentication signature

Parameters:
Name Type Description
req Object

the http request

res Object

the http response

operationId string

the operation id as defined in the openapi definition

callback logEndpointEventCb
Source:

(inner) verifySignature(req, res, operationId, callback)

Verifies a Whiteflag authentication signature

Parameters:
Name Type Description
req Object

the http request

res Object

the http response

operationId string

the operation id as defined in the openapi definition

callback logEndpointEventCb
Source:

Type Definitions

endpointSignatureDecodeCb(err, wfSignDecoded)

Parameters:
Name Type Description
err Error

any error

wfSignDecoded wfSignDecoded

the decoded signature

Source:

endpointSignatureVerifyCb(err, wfSignDecoded)

Parameters:
Name Type Description
err Error

any error

wfSignDecoded wfSignDecoded

the verified signature

Source: