Token Management extension
Token Management functions are available when you execute WarpScript with io.warp10.worf.TokenGen
class. This extension exposes Token Management within WarpScript on the standard api/v0/exec
endpoint. It enables really easy token management, as long as you know the secret.
This extension adds the following functions to WarpScript:
Configuration
Your custom configurations can be stored in a new etc/conf.d/99-myWarp10.conf
file. Your custom configurations will override all the predefined Warp 10 configurations.
// TOKENDUMP, TOKENGEN, TOKENSECRET
warpscript.extension.token = io.warp10.script.ext.token.TokenWarpScriptExtension
#token.secret = fillYOURsecretHERE
You MUST define a strong secret and remove the # before token.secret key.