Ghostkeeper
e60e44b919
Interpret timeouts as general connection errors
...
It's a similar problem for us.
We should really have used the HttpRequestManager for these things.
Fixes Sentry issue CURA-295.
2021-06-07 15:03:46 +02:00
Jaime van Kessel
f85cad37cf
Expand the logging for the auth data a bit more
...
We're getting some reports that people are suddenly logged out. The working
theory is that they are mixing staging & production builds. This logging
should tell us enough to find out if that is the case!
2021-01-28 10:31:47 +01:00
Ghostkeeper
640e038ce7
Catch OSError when authorizing connection
...
Fixes Sentry issue CURA-1GW.
2021-01-19 11:05:55 +01:00
Kostas Karmas
881e4406a4
Ensure the organization_id is None
2020-11-04 09:21:28 +01:00
Kostas Karmas
1521430d42
Include all subscription information in the slice data
...
CURA-7717
2020-10-14 11:43:22 +02:00
Kostas Karmas
ceda3e70bd
Include organization id and type of enterprise plan in slice data
...
CURA-7717
2020-10-13 16:30:29 +02:00
Nino van Hooff
89f0970a88
Remove trailing whitespace from Python files
2020-05-29 14:30:33 +02:00
jelle Spijker
b032101e55
Updated comments in cura/OAuth2
...
Used DOX_2_RST.py to convert doxygen style comments to sphinx style comments
2020-05-11 13:16:29 +02:00
Jaime van Kessel
ca25ec3dbc
Increase size of the verificationCode
...
It's mostly a theoretical problem, but 16 could theoretically be brute
forced. Bumping it up to 32 won't break anything, but it does make it
exteremely unlikely that it gets broken
2020-01-31 15:00:03 +01:00
Jaime van Kessel
e2414ed5c9
Also log the exception when the connection failed to connect
2019-11-11 15:58:39 +01:00
Jaime van Kessel
48f37d03a4
Add debug log for when we are refreshing the access token
2019-04-18 09:29:04 +02:00
Jaime van Kessel
38a9206898
Merge branch '4.0' of github.com:Ultimaker/Cura
2019-02-28 16:01:40 +01:00
Jaime van Kessel
62f913802f
Prevent crash if the connection was lost for auth token
2019-02-28 12:58:41 +01:00
Ghostkeeper
650204dae7
Merge branch '4.0'
2019-02-21 09:09:19 +01:00
Ian Paschal
a11878b199
Log warning instead of exception if no connection
...
Contributes to CL-1245
2019-02-20 10:40:23 +01:00
Jaime van Kessel
a8f66a558c
Merge branch '4.0' of github.com:Ultimaker/Cura
2019-02-14 10:53:01 +01:00
ChrisTerBeke
62c7ba5659
remove unused argument
2019-02-08 22:31:36 +01:00
ChrisTerBeke
48c756b01d
Fixes for storing timestamp
2019-02-08 22:24:14 +01:00
ChrisTerBeke
05c4b6012e
Calculate expiry date to determine if token refresh is needed
2019-02-08 21:39:45 +01:00
Ghostkeeper
473633de2c
Merge branch '4.0'
2019-02-08 11:28:06 +01:00
Ghostkeeper
1b29ff2b8a
Make authorisation error messages translatable
...
Because they weren't. Foreigners might not understand them.
2019-02-08 11:19:22 +01:00
Ghostkeeper
12b2154a96
Fix code style and documentation formatting
2019-02-08 11:10:43 +01:00
Jaime van Kessel
91f0d76c8a
Fix crash when user was logged in but there was no internet connection on boot
2019-02-08 10:50:17 +01:00
Jaime van Kessel
2a0954f246
Gracefully handle the conectionError when logging in
2018-12-07 09:35:53 +01:00
Lipu Fei
1bee201cfd
Remove unused code
2018-09-28 14:24:40 +02:00
Lipu Fei
5761d28f7f
Use old data dict code style, more readable
2018-09-28 14:24:21 +02:00
Lipu Fei
3bc91f15c3
Fix mypy complains
2018-09-28 14:17:00 +02:00
Jaime van Kessel
3b70e5eb6b
Fix typing
...
For some reason, my MyPy started acting up once I started using the PythonPath while calling it.
2018-09-27 20:01:55 +02:00
Jaime van Kessel
0ccbabd857
Switch SHA512 implementation to use the one from hashlib
...
CURA-5744
2018-09-27 11:37:44 +02:00
Jaime van Kessel
1c8804ff2c
Changed documentation style to doxygen
...
CURA-5744
2018-09-27 11:03:17 +02:00
Jaime van Kessel
d0fc4878c2
Fix number of mypy mistakes
...
CURA-5744
2018-09-21 13:54:37 +02:00
Jaime van Kessel
3ae223334f
Removed relative imports
...
Since the oauth module isn't just in a plugin anymore, there is no need for any of the relative imports
CURA-5744
2018-09-21 12:02:11 +02:00
Jaime van Kessel
3830fa0fd9
Initial move of the code of CuraPluginOAuth2Module
...
CURA-5744
2018-09-21 11:58:30 +02:00