Tyk API Gateway and API Management Login 24/7 Support Community

How To Serve Plugins

If you are using gRPC, please visit the gRPC section as you don’t add plugin files to the Tyk Gateway for it to read, it will simply make a connection to your gRPC server.

For everything else, there are two ways to add custom plugins:

  1. Publish the plugin on an HTTP Server so the Gateway can download it. This is called “Bundling”.

  2. Mount your custom plugin on the Gateway’s file system. Find examples under your favorite programming language under “Supported Languages”

Approach #2 Examples

Javascript pre plugin - modify header

https://gist.github.com/asoorm/4dd9f4361ad92d2f7201141fc09cbcb1

GoLang auth plugin - check User credentials against AWS DynamoDB

https://github.com/TykTechnologies/native-go-auth-middleware