Versions Compared

Key

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

...

Token URL

  • Method: POST

  • Endpoint: https://api.tforge.co.za/omni/user/login/authorize

  • System Authorization: Authorization: Key=your-auth-key

Paste code macro
languagejson
titleRequest Example
{
  "username":"{user_name}": <user_name>,
  "password":"{Base64Password}" <Base64Password>
}

The Token service API will return a token on success.

Paste code macro
languagejson
titleResponse sample
{
To be provided
   "user_id": <int>,
   "user_name": <string>,
   "token_key": <string>,
   "expiry_date": <dateTime - ISO 8601 format>
}

Password

The password needs to be converted to Base64 with ASCII encoding to get the bytes[] from the password string.

...