Prizm Gateway

JWT Authentication

The JSON Web Token (JWT) Authentication Plugin enforces JWT authentication for selected Consumers for a Service, Route, or the gateway.

plugin-jwt-auth.png

Plugin Properties

Property

Description

Description

A brief description of the Plugin.

Consumers

The Consumers that may access the Service, Route, or Gateway if valid credentials are presented

Query params

A list of query param names to check for the request JWT. The first query param found will be selected

Headers

A list of HTTP header names to check for the request JWT. The first header found will be selected

Key Claim Name

The name of the JWT header property which holds the key identifier. This field defaults to "kid".

Maximum Expiration

The maximum number of seconds limiting the lifetime of the JWT. This property can be used to limit the lifetime of the "exp" claim in the JWT.

Enabled

Check this box to enable the plugin.

Remarks

At least one of Query params or Headers must be supplied. Query params are examined before headers and the first match in either category is selected. The selected value is assumed to contain a valid JWT. If the value does not contain a valid JWT, HTTP error 400 Bad Request is returned.