Cura/plugins/Toolbox/src/CloudSync
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
..
__init__.py Introduce the SyncOrchestrator 2020-01-10 11:42:48 +01:00
CloudApiClient.py Move UltimakerCloudAuthentication and UltimakerCloudScope 2020-03-12 17:48:54 +01:00
CloudPackageChecker.py Don't restart refresh token while it's already processing 2021-11-22 18:52:43 +01:00
DiscrepanciesPresenter.py Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
DownloadPresenter.py Fix translations of log-in page and sync message 2021-09-07 14:26:43 +02:00
LicenseModel.py Count the number of packages which have a license to display 2020-01-30 16:42:42 +01:00
LicensePresenter.py Catch environment errors when reading license file from package 2021-10-04 14:31:25 +02:00
RestartApplicationPresenter.py Applied review comments 2021-07-28 11:32:29 +02:00
SubscribedPackagesModel.py Simplify package compatibility checking 2020-02-11 11:21:28 +01:00
SyncOrchestrator.py Update messages to use the message_types 2021-07-27 11:54:43 +02:00