Store base64-encoded secret

If your secret contains binary data, you can store it as base64 encoded in Kong Gateway. After the plugin is configured, base64-encode your Consumers’ secrets by specifying the encoded secret in a POST request to the /consumers/{consumer}/jwt endpoint.

Prerequisites

  • Because this is an auth plugin, you need to create a Consumer and attach a credential to it in the jwt_secrets config.

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!