...
Token URL
Method: POST
Endpoint:
https://api.tforge.co.za/omni/user/login/authorize
System Authorization:
Authorization: Key=your-auth-key
Paste code macro | ||||
---|---|---|---|---|
| ||||
{ "username":"{user_name}": <user_name>, "password":"{Base64Password}" <Base64Password> } |
The Token service API will return a token on success.
Paste code macro | ||||
---|---|---|---|---|
| ||||
{ 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.
...