I try to follow this docs step by step: Golang plugins (tyk.io). But it seems not work for me. The output of this api is alway: { “error”: “Access to this API has been disallowed” }
Here is my api definition file:
{
"name": "BFF API",
"slug": "bff-api",
"api_id": "1",
"org_id": "1",
"use_keyless": false,
"use_go_plugin_auth": true,
"definition": {
"location": "header",
"key": "x-api-version"
},
"version_data": {
"not_versioned": true,
"versions": {
"Default": {
"name": "Default",
"use_extended_paths": true
}
}
},
"custom_middleware": {
"pre": [],
"post": [],
"post_key_auth": [],
"auth_check": {
"name": "AbcAuth",
"path": "./middleware/plugin.so"
},
"driver": "goplugin"
},
"driver": "otto",
"proxy": {
"listen_path": "/bff/",
"target_url": "http://my-upstream/",
"strip_listen_path": true
},
"active": true
}
Please help to figure me out where am I wrong. Thanks.