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

Python Custom Authentication

Introduction

This page introduces the process of configuring a custom authentication plugin, so that you can override the default Tyk authentication mechanism with your own authentication logic.

What are we going to do?

We are going to configure an Tyk Cloud Control Plane to use a custom authentication plugin built in Python.

What do I need in advance?

Firstly you will need a local Tyk Gateway installation that allows you to create your Python plugin bundle. We recommend installing our On-Premises version on Ubuntu Bionic 18.04.

Further Python Requirements

  1. Ensure you have a currently stable Python 3.x version installed
  2. You need install the build tools apt-get install -y build-essential
  3. Install our required modules:
apt install python3 python3-dev python3-pip
pip3 install protobuf grpcio

Next you’ll set up an Control Plane to support plugins