Since 5.8.1 application tokens can be defined in translate5 and MUST be used for API usage.

Per user multiple tokens can be generated.

Creation of the token

The creation is currently only possible over the Command Line interface - a UI implementation will probably follow. For the usage of the CLI tools see the corresponding documentation.

./translate5.sh auth:apptoken:add LOGIN "DESCRIPTION"

See further documentation of the command see: ./translate5.sh auth:apptoken:add

The token is shown only once! You have to copy it from where it is shown and store it where ever you want to use it!

Since it is stored encrypted in the translate5 DB it can not be retrieved anymore from translate5 again.


Usage of the token

The token can either be used as:

  1. on session API endpoint login as password - instead of the normal password
  2. As HTTP Header "Translate5AuthToken"

Administration

A ./translate5.sh auth:apptoken:list to show all tokens (the description only) for a user is planned, also a ./translate5.sh auth:apptoken:delete.