aboutsummaryrefslogtreecommitdiff
path: root/uploader/oauth2
AgeCommit message (Collapse)Author
2024-09-25Fix typos.Frederick Muriuki Muriithi
2024-09-16Fix minor bugs and linting and typing errors.Frederick Muriuki Muriithi
2024-09-05Synchronise token refreshing.Frederick Muriuki Muriithi
When running flask with multiple threads/workers, as happens when using gunicorn, there is a potential for more than one thread running with an expired token, leading to multiple uncoordinated token refreshes. This commit coordinates the threads in the case there is need to refresh a token, ensuring only one thread does the token refresh.
2024-09-04Update retrival of JSON Web KeysFrederick Muriuki Muriithi
* Introduce the function `auth_server_jwks()` to use for fetching the keys from the session if present, or from the server when absent or out-of-date. It also handles updating the keys in the session. * Remove the unnecessary verification of JWKs until the point where that is needed, i.e. at the point(s) where there is need to verify authorisation.
2024-08-08Fix linting issues.Frederick Muriuki Muriithi
2024-08-06Override `client_secret_post`: use JSONFrederick Muriuki Muriithi
Override the `client_secret_post` auth method to use JSON rather than FORMDATA in order to gain some consistency while communicating with the auth server.
2024-08-05Fix token revocationFrederick Muriuki Muriithi
Token revocation was failing due to missing hint.
2024-08-05If no user is logged in, notify and redirect appropriately.Frederick Muriuki Muriithi
2024-08-05Provide a generalised way to handle errors and exceptions.Frederick Muriuki Muriithi
2024-08-05mypy and pylint fixes.Frederick Muriuki Muriithi
2024-08-05Enable logout.Frederick Muriuki Muriithi
2024-08-05Differentiate python's requests library from our monadic wrappers.Frederick Muriuki Muriithi
2024-08-05Fix bugs in POST wrapper for OAuth2 clientFrederick Muriuki Muriithi
* Call the correct __post__ function * Set up the headers appropriately
2024-08-05Add OAuth2/JWK-related endpoints.Frederick Muriuki Muriithi
2024-07-26Add module to handle the JSON Web Keys.Frederick Muriuki Muriithi
2024-07-26Add wrappers for OAuth2Session's `get` and `post` methods. Fix bugs.Frederick Muriuki Muriithi
2024-07-26Provide UI for enabling login to the application.Frederick Muriuki Muriithi
2024-07-26OAuth2 package: Handle OAuth2 related issuesFrederick Muriuki Muriithi
Adds utilities to handle talking to the authentication/authorisation server.