@dvelop-sdk
    Preparing search index...

    Function validateCloudCenterEventSignatureMiddlewareFactory

    • Validate the cloud-center-event signature against your appSecret.

      The cloud-center-event signature should be validated for every request when recieving events from the d.velop cloud-center. Refer to the d.velop cloud center API for more information.

      import { validateCloudCenterEventSignatureMiddlewareFactory } from "@dvelop-sdk/express-utils";

      app.use("/some/route/dvelop-cloud-lifecycle-event", validateCloudCenterEventSignatureMiddlewareFactory(process.env.APP_SECRET));

      Parameters

      • appSecret: string

      Returns (request: Request, response: Response, next: NextFunction) => void

    • Internal

      Validate the cloud-center-event signature against your appSecret. You can supply a custom validate-function.

      Parameters

      • appSecret: string
      • validateCloudCenterEventSignature: (appSecret: string, params: ValidateCloudCenterEventSignatureParams) => void

      Returns (request: Request, response: Response, next: NextFunction) => void