This configuration allows you to specify the JWT token in a cookie.

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

Add this section to your kong.yaml configuration file:

kong.yaml
_format_version: "3.0"
plugins:
  - name: jwt
    config:
      cookie_names:
      - jwt

Did this doc help?

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!