Skip to content

Latest commit

 

History

History
executable file
·
54 lines (41 loc) · 1.55 KB

README.md

File metadata and controls

executable file
·
54 lines (41 loc) · 1.55 KB

version platform license downloads

4d-plugin-jwt

Sign and Verify JSON Web Token based on josepp jwtpp and jsoncpp.

Native solution available

Please note that CryptoKey can be used to process JWT.

c.f. https://blog.4d.com/cryptokey-encrypt-decrypt-sign-and-verify/

Included In This Repo

• Source code for the plugin • Test database (folder test)

Installation Instructions

  1. Extract either the JWT.DMG or the JWT.zip archives
  2. Add the JWT.bundle to your database's Plugins folder.

Syntax

timestamp:=JWT Timestamp ({time1{;time2}})
Parameter Type Description
time1 TEXT anchor time or "" for current time
time2 TEXT time to add
timestamp TEXT UNIX time in milliseconds
bearer:=JWT Sign (header;claim;privateKey)
Parameter Type Description
header TEXT
claim TEXT
privateKey TEXT
bearer TEXT
valid:=JWT Verify (bearer;privateKey)
Parameter Type Description
bearer TEXT
privateKey TEXT
valid LONGINT 1:valid