TOKENDUMP
Extension: io.warp10.script.ext.token.TokenWarpScriptExtension
extensions platformConfiguration parameters
-
token.secret
Deciphers a token and outputs a map describing the various elements of the token.
The map contains the following entries:
Key | Type | Description |
---|---|---|
token | STRING | Original token |
ident | LONG | TokenIdent associated with token , can be used in a TRL |
params | MAP | Map of token parameters, can be used as input to TOKENGEN |
The params
map contains the following entries for both READ
and WRITE
tokens:
Key | Type | Description |
---|---|---|
type | STRING | READ or WRITE depending on the type of token |
owner | STRING | UUID of the owner associated with the token |
producer | STRING | UUID of the producer associated with the token |
application | STRING | Name of application asociated with the token |
issuance | LONG | Issuance timestamp of the token, in ms since the Unix Epoch |
expiry | LONG | Expiry timestamp of the token, in ms since the Unix Epoch |
labels | MAP | Map of labels which will be added to the pushed Geo Time Series™ int the case of a WRITE token, or map of label selectors which will be added to the selection criteria for a READ token |
attributes | MAP | Map of attributes attached to the token |
Additionally, for READ
tokens, the map contains those entries:
Key | Type | Description |
---|---|---|
owners | LIST | List of owners the READ token can access, those will be added to the selection criteria |
producers | LIST | List of producers the READ token can access, they will be added to the selection criteria |
applications | LIST | List of applications the READ token can access, they will be added to the selection criteria |
Note that the TOKENDUMP
function can only be called using the Worf
tool if the token.secret
configuration key was not set.
Since 2.7.3, Siphash and AES key can be specified to decode the token.