Older version2.8 Valves JWTJWTTokenParserValve

JWTTokenParserValve

Parses a JWT token and extracts the parsed pieces into an item. If no item is present, a new is created.

Verifies the signature of the JWT token with configured certificate (public key).

Properties

Name Description Default value Mandatory Supports property expansion
access_token Where to find the access token. Formatted in rfc7519. empty as in nothing Yes Yes
certfilepath Path to the certificate file (.crt) containing the public key. The public key in the certificate is used to verify the JWT signature. Yes No

Example Configuration

{      
  "name": "JWTTokenParserValve",
  "config": {
         "access_token": "jwt",
         "certfilepath": "/path/to/file.crt"
  }
}

Requirements

  • The incoming request must contain parameter access_token in order for the valve to work properly.

General information