Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For using translate5 via API the authentication against the API must be done via an app token (starting with version 5.8.2 / 5.8.3).

Authentication via username / password will not be possible anymore (for security reasons).

Currently the maintenance (add / delete / list) of tokens is only doable via translate5 CLI tool. See below.

The maintenance of tokens per user in the UI is planned, but funding is requiredThis is how application token can be generate for authentication with translate5. Use this token later ass post parameter or ass request header to authenticate.

Code Block
languagebash
titleApp token command
aleksandar@aleksandarserver:/var/www/translate5$ ./translate5.sh auth:apptoken:add --help

Description:
  Generates auth token used for authentication in translate5

Usage:
  auth:apptoken:add <login> <desc>

Arguments:
  login                 User login for whom this authentication token will be generate for
  desc                  Description for the generated token

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Generates auth token used for authentication in translate5. The command will generate and display
          the token witch can be used for authenticating in translate5

...