Manual tokens
Warp 10 can use manual tokens. These tokens are defined in a text file and Warp 10 configuration must be changed to take this into account.
Warp 10 configuration
The path to the token definition file is set with the configuration property warp.token.file
in /path/to/warp10/etc/conf.d/00-warp.conf
.
Example:
warp.token.file=${standalone.home}/etc/manual.tokens
Token definition
The definition file includes:
- either lines containing a
TOKENGEN
parameter map aftertoken.spec=
:
token.spec={ 'id' 'readToken' 'type' 'READ' 'owner' '00000000-0000-0000-0000-000000000000' 'application' 'X' }
- or lines defining read/write tokens with individual properties:
token.write.0.name=writeToken
token.write.0.producer=56A8615B-6B5B-49B0-9B13-8A0A771C8C91
token.write.0.owner=56A8615B-6B5B-49B0-9B13-8A0A771C8C91
token.write.0.app=app-0
token.read.0.name=readToken
#token.read.0.producer=56A8615B-6B5B-49B0-9B13-8A0A771C8C91
token.read.0.owner=56A8615B-6B5B-49B0-9B13-8A0A771C8C91
token.read.0.app=app-0
Usage
[ 'readToken' '~.*' {} NOW -1 ] FETCH