Jaime van Kessel
ed968f85b8
Add more logging to AuthorizationRequestHandler
...
I don't know why this wasn't there yet. We only had user messages,
which makes it hard to debug this
2023-04-24 13:18:51 +02:00
Jelle Spijker
0a43366ffc
Fixed some styling and typing issues
...
Some boyscouting.
Contributes to: CURA-8539
2021-11-23 11:10:22 +01:00
Jelle Spijker
70504f1b04
Modernize typing usage
...
Some boyscouting.
2021-11-23 11:10:22 +01:00
Ghostkeeper
7091c5f3aa
Make getAuthenticationTokenUsingXYZ asynchronous
...
As a result, the local webserver now needs to synchronise that with a lock. Otherwise the do_GET function would no longer block, and wouldn't properly be able to return the correct redirect URL.
Contributes to issue CURA-8539.
2021-11-19 16:55:45 +01: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
1269de744f
Use state in AuthorizationService
...
It's a paranoid safety precaution, but beter safe than sorry.
Reported by WhiteHats; F-1.1.1
2020-01-31 16:11:59 +01:00
Lipu Fei
9f110368de
Add do_HEAD() for auth req handler
...
CURA-6609
2019-08-27 14:48:02 +02:00
Jaime van Kessel
a8f66a558c
Merge branch '4.0' of github.com:Ultimaker/Cura
2019-02-14 10:53:01 +01:00
ChrisTerBeke
4192c9e764
Fix typing issue
2019-02-08 22:30:31 +01:00
ChrisTerBeke
05c4b6012e
Calculate expiry date to determine if token refresh is needed
2019-02-08 21:39:45 +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
Ghostkeeper
eb3129815d
Fix some code style
...
Please, people, adhere to our code style.
2019-02-08 11:01:09 +01:00
Jaime van Kessel
1c8804ff2c
Changed documentation style to doxygen
...
CURA-5744
2018-09-27 11:03:17 +02:00
Jaime van Kessel
b48adf5b3e
Typing fixes
...
CURA-5744
2018-09-24 17:37:06 +02:00
Jaime van Kessel
060ea0b762
Fixed up final bit of mypy issues
...
CURA-5744
2018-09-21 14:12:31 +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