aboutsummaryrefslogtreecommitdiff
path: root/uploader/oauth2/client.py
AgeCommit message (Expand)Author
2025-04-05Fix fetching of user details.•••Move the fetching of user details to the client module. Add checks to only fetch the details if they are not updated yet. Frederick Muriuki Muriithi
2025-01-15Allow non-expiring JWTs•••The authorisation server was updated to return non-expiring JWTs, so this particular client needs to allow for such. Frederick Muriuki Muriithi
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.•••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. Frederick Muriuki Muriithi
2024-09-04Update retrival of JSON Web Keys•••* 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. Frederick Muriuki Muriithi
2024-08-08Fix linting issues.Frederick Muriuki Muriithi
2024-08-06Override `client_secret_post`: use JSON•••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. Frederick Muriuki Muriithi
2024-08-05mypy and pylint fixes.Frederick Muriuki Muriithi
2024-08-05Fix bugs in POST wrapper for OAuth2 client•••* Call the correct __post__ function * Set up the headers appropriately 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 issues•••Adds utilities to handle talking to the authentication/authorisation server. Frederick Muriuki Muriithi