Cura/cura
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
..
API Typing: When the user profile changes, it may also become None 2021-11-22 16:30:03 +01:00
Arranging Only show "can't find location message" when it couldn't find location 2021-10-28 13:53:52 +02:00
Backups Handle encoding errors in back-up zips 2021-09-21 14:20:59 +02:00
Machines Merge branch '4.12' of github.com:Ultimaker/Cura 2021-10-28 13:54:58 +02:00
OAuth2 Don't restart refresh token while it's already processing 2021-11-22 18:52:43 +01:00
Operations Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
PrinterOutput Fix binding printer_id to response callbacks 2021-10-27 14:06:04 +02:00
ReaderWriters Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
Scene Merge pull request #9884 from Ultimaker/CURA-7873_fix_positioning_merged_meshes 2021-06-08 12:37:34 +02:00
Settings Don't use infinite lifetimes lightly 2021-11-09 14:45:40 +01:00
Stages Move CuraStage back to where plugins expect it. 2019-03-29 13:11:03 +01:00
TaskManagement Fix various typos 2021-09-07 11:33:54 -04:00
UI Always set the project name as the one provided by the user 2021-09-15 14:37:53 +02:00
UltimakerCloud Remove message explaining what caused the error 2021-11-01 18:29:36 +01:00
Utils Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
__init__.py T466: Revert the previous commit since it messed up the file rights. 2016-12-23 15:53:15 -05:00
ApplicationMetadata.py Increase SDK version to 7.8.0 2021-09-17 15:15:25 +02:00
AutoSave.py Print how much time it took to autosave dirty profiles 2021-05-06 10:54:38 +02:00
BuildVolume.py Handle exception when adhesion extruder could not be found 2021-11-09 10:17:32 +01:00
CameraAnimation.py Merge pull request #905 from Ultimaker/snappier_camera_animation 2017-10-24 10:36:55 +02:00
CrashHandler.py Apply bitmask to user scope 2020-09-08 02:00:58 +02:00
CuraActions.py Add missing campaign tags 2021-08-09 12:59:29 +02:00
CuraApplication.py Also ensure that extruder settings are correct when discarding unsaved changes 2021-11-09 15:10:09 +01:00
CuraPackageManager.py Merge remote-tracking branch 'origin/master' into doxygen_to_restructuredtext_comments 2020-05-28 17:31:24 +02:00
CuraVersion.py.in Add the CURA_DIGITAL_FACTORY_URL variable 2020-09-14 21:15:32 +02:00
CuraView.py Fix various typos 2021-09-07 11:33:54 -04:00
Layer.py Add documentation. 2021-11-07 22:26:34 +01:00
LayerData.py Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
LayerDataBuilder.py Apply suggestions from code review 2021-10-31 21:21:24 +01:00
LayerDataDecorator.py Converted comments in dir Cura/cura to rst style 2020-04-21 16:58:45 +02:00
LayerPolygon.py Add documentation. 2021-11-07 22:26:34 +01:00
MachineAction.py Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
MultiplyObjectsJob.py Push the grouped operation instead of redoing it 2021-10-06 16:46:20 +02:00
OneAtATimeIterator.py Exclude objects outside buildplate from OneAtATimeIterator 2020-10-14 17:14:38 +02:00
PickingPass.py Fix various typos 2021-09-07 11:33:54 -04:00
PlatformPhysics.py Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
PreviewPass.py Part of fix for crash on context menu open + click on slice. 2021-07-30 19:50:18 +02:00
PrinterOutputDevice.py Fix typo in a log warning message 2019-05-16 12:04:26 +02:00
PrintJobPreviewImageProvider.py Converted comments in dir Cura/cura to rst style 2020-04-21 16:58:45 +02:00
SingleInstance.py Merge branch 'feature_single_instance_clear_before_load' of https://github.com/fieldOfView/Cura 2021-09-15 16:18:54 +02:00
Snapshot.py Part of fix for crash on context menu open + click on slice. 2021-07-30 19:50:18 +02:00
XRayPass.py Pass the cached normal transformation to the rendere 2020-06-30 13:39:32 +02:00