TykTechnologies / tyk-gateway-docker

Docker compose deployment to run Tyk OSS Gateway
96 stars 80 forks source link

Custom middleware in keyless-plugin-api.json does not work #66

Closed Lanchez closed 5 months ago

Lanchez commented 1 year ago

Driver definition in keyless-plugin-api.json is at wrong place and the middleware does not work.

https://github.com/TykTechnologies/tyk-gateway-docker/blob/e44c765f4aca9aad2a80309c5249ff46b308e46e/apps/keyless-plugin-api.json#L28

This should be under custom_middleware object like this:

    "custom_middleware": {
        "pre": [
            {
                "name": "testJSVMData",
                "path": "./middleware/injectHeader.js",
                "require_session": false,
                "raw_body_only": false
            }
        ],
        "driver": "otto"
    }