Verify registered claims

Kong Gateway can perform verification on registered claims, as defined in RFC 7519. To perform verification on a claim, add it to the config.claims_to_verify property.

The following claims are supported:

  • exp: Identifies the expiration time on or after which the JWT must not be accepted for processing.
  • nbf: Identifies the time before which the JWT must not be accepted for processing.

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!