Cura/plugins/Toolbox/src
Ghostkeeper 3f92b46ac8
Don't restart refresh token while it's already processing
If two requests to the API occur at the same time, they will both see at the same time that they need an access token, and if it is expired they will both see that it needs refreshing. The server then sees two refreshes, both with the same refresh token. This is not allowed. The second one then gets a failure to refresh the token, which causes the user to log out.
Instead, we'll stop one of the refresh requests. They were fire-and-forget anyway, so it's not needed to actually continue the request.

Contributes to issue CURA-8539.
2021-11-22 18:52:43 +01:00
..
CloudSync Don't restart refresh token while it's already processing 2021-11-22 18:52:43 +01:00
__init__.py CURA-5035 Renaming 2018-04-04 13:53:09 +02:00
AuthorsModel.py Add extra cast to author model 2020-11-27 10:46:33 +01:00
CloudApiModel.py Process Review feedback for CURA-7438 2020-06-09 13:41:30 +02:00
ConfigsModel.py Convert doxygen to rst for Toolbox, TrimeshReader 2020-05-15 13:53:10 +02:00
PackagesModel.py Remove incorrect log 2021-08-12 15:43:11 +02:00
Toolbox.py Catch environment errors when reading license file from package 2021-10-04 14:31:25 +02:00