post https://api-test.tingg.africa/api/v1/cas/authenticate
Below is the expected payload used to invoke the get token endpoint.
Request
Parameter | Type | Mandatory | Description |
---|---|---|---|
Username {username} | String | YES | The username shared to get a token. |
Password {password} | String | YES | The password required to login to the platform. |
Sample Request
{
"username":"TEST_USER",
"password":"TEST_PASSWORD"
}
Response
Parameter | Type | Mandatory | Description |
---|---|---|---|
Token Type {token_type} | String | YES | This tells us the type of token to expect. |
Expires In {expires_in} | String | YES | This tells us how long the token is valid. |
Access Token {access_token} | String | YES | This holds the token to be used. |
Sample Response
{
"token_type": "bearer",
"expires_in": 3600,
"access_token": "eyJraWQiOiJjYXMtcGsiLCJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI3IiwicGFyZW50IjoiR2VvcmdlX0dhdGhlY2EiLCJsZXZlbCI6IkNVU1RPTUVSIiwiaXNzIjoiaHR0cDovL2Nhcy1hcGkuZGV2ZWxvcG1lbnQ6ODA4MC8iLCJ1dHlwZSI6IkFQSSIsImF1ZCI6Ik1lc3NhZ2luZ1BsYXRmb3JtIiwicGhvbmUiOiIyNTQ3MjEwMDIwMCIsIm5hbWUiOiJyZWNvbi1hZG1pbiIsImNsaWVudCI6Ikdlb3JnZV9HYXRoZWNhIiwiZXhwIjoxNjg4NDYxNDE1LCJpYXQiOjE2ODg0NTc4MTUsImN1c3RfaWQiOjEsImp0aSI6IjI1NThjMDc2LTk0M2MtNGVjOS1iYzhiLWQ4MTUxNjlmMTcyYWQ5Yjc4MzE2LWQ0ODUtNDcwYi1hY2VmLWFkYTRmM2FjYjgyMCIsImVtYWlsIjoicmVjb24tYWRtaW5AY2VsbHVsYW50LmNvbSJ9.IjjLJJ8fvsKhuMW4kagi7uPT2vYrajILNDSAmtudWJFO97USs45kXmc32u3PGegMUM50hVfFyCbXIkcSbndPkZvts4-Sv9rWFvQgUKukJLDmMLlGCwIxanPyRFVdphFRT4HCfJgQG1ZTjVlPPqjylxLHeG3QdQBHsoP38yU08oK0JnKQOn6o7LZ_humxz0TKUB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