Project

General

Profile

Bug #1910

User Story #1897: API endpoints to add new cases

API Authentication: First successfull authentication answers with outdated token

Added by Kurt Gerber over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Start date:
17 Sep 2020
Due date:
% Done:

0%

Estimated time:
Resolution:
fixed

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.

#1

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!

#2

Updated by Kurt Gerber over 4 years ago

  • Status changed from Feedback to Closed
  • Resolution set to fixed

Solved. Works now.

Also available in: Atom PDF