Sign and Verify JSON Web Token based on josepp jwtpp and jsoncpp.
Please note that CryptoKey can be used to process JWT.
c.f. https://blog.4d.com/cryptokey-encrypt-decrypt-sign-and-verify/
• Source code for the plugin
• Test database (folder test
)
- Extract either the JWT.DMG or the JWT.zip archives
- Add the JWT.bundle to your database's Plugins folder.
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 |