JWT Functions

Overview

Allows for an additional layer of security using signed JWT. This plug-in may also be used to integrate with external systems using JWS.

Key Functionality and Features

  • jwtsign - Create a signed JWT using HS256, HS384, HS512, ES256, ES384, ES512, RS256, RS384, or RS512
  • jwtverify - Verify signed JWT
  • jwtgeneratesecretkey - Generate an Hmac-SHA key that can be used to sign a JWT using HS* algorithm
  • jwtdecode - Decode a JWT without verifying the signature

Uses JWTKs JJWT library: https://github.com/jwtk/jjwt

Anonymous
Parents
  • Hey, for some reason I am unable to set reserved keys in the payload, and then when using TokenOptions for jwtverify options it still does not seem to add them:

    eyJhbGciOiJIUzI1NiJ9.eyJwYXkiOiJsb2FkIiwiaWF0IjoxNjQ3OTQwNjg1fQ.-deGIDlA2fC3NnBbl3yqLI_ODHgel8QzTfXzpc7aiQg

    Any ideas why this is not working?

  • I think it has something to do with using key-based function call - I'm not sure if this is fully supported by plugin functions.

    Can you try using order-based function call shown below?

    Thanks

Comment Children