JWT Validate

Validates a JSON web token using a public key that is stored in PEM format. 

Use

To use this node, you must extract and store the public key in PEM format in the runtime of the flow. To do this, see the Key to PEM node below. The node has two outputs: success and error.

Properties

AttributeValuesRemarks
Nameany stringEnter a self-explaining name of the node. If you leave this field empty, the generic name displays in the dashboard.
Options type

{}

If another type is selected, open the drop-down list and select {} JSON.
Verification options"ignoreExpiration":false|trueDefaults to false. To ignore the token expiration, set to true.

Example

Authentication with Keycloak

Key to PEM

Converts an RSA key in a JWKS response into a PEM public key that is output in the msg.payload.

Use

The JSON Web Token (JWT) must be extracted in a Function node and handed over to this node. The JSON Web Token is part of the JSON Web Key Set (JWKS), which can be requested via HTTP request from the authentication server (Keycloak) in a HTTP In node. The PEM public key is stored in the runtime of a flow. 

Properties

AttributeValuesRemarks
Nameany stringEnter a self-explaining name of the node. If you leave this field empty, the generic name displays in the dashboard.

Example

Authentication with Keycloak