Bug #1910
User Story #1897: API endpoints to add new cases
API Authentication: First successfull authentication answers with outdated token
0%
Description
I authenticate through the API successfully with user name and password.
As response I receive a token,
When I use that token, in any other request for editing data through the API, it fails with the response:
{
"detail": "APP Token expired, request a new APP Token"
}
Effectively it responds with the token which I used the last time I was playing with editing through API. I can see that, as my last Token is stored in postman in the different requests I formerly did.
But when I authenticate a second time, I get a new token, which then works.
That has to be solved, as in a mobile app, that would cause major problems.
Updated by Brahadeesh Dheenadayalan_Sivakami over 4 years ago
- Status changed from Accepted to Feedback
- Assignee changed from Brahadeesh Dheenadayalan_Sivakami to Kurt Gerber
Hi Kurt, this should be fixed up now.
I had logic to expire and re-issue the token when the Edit API endpoints were being used but not on the Auth endpoint.
Easy fix!
Updated by Kurt Gerber over 4 years ago
- Status changed from Feedback to Closed
- Resolution set to fixed
Solved. Works now.