Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-09-25 | Fix typos. | Frederick Muriuki Muriithi | |
2024-09-16 | Fix minor bugs and linting and typing errors. | Frederick Muriuki Muriithi | |
2024-09-05 | Synchronise 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-04 | Update retrival of JSON Web Keys | Frederick 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-08 | Fix linting issues. | Frederick Muriuki Muriithi | |
2024-08-06 | Override `client_secret_post`: use JSON | Frederick 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-05 | Fix token revocation | Frederick Muriuki Muriithi | |
Token revocation was failing due to missing hint. | |||
2024-08-05 | If no user is logged in, notify and redirect appropriately. | Frederick Muriuki Muriithi | |
2024-08-05 | Provide a generalised way to handle errors and exceptions. | Frederick Muriuki Muriithi | |
2024-08-05 | mypy and pylint fixes. | Frederick Muriuki Muriithi | |
2024-08-05 | Enable logout. | Frederick Muriuki Muriithi | |
2024-08-05 | Differentiate python's requests library from our monadic wrappers. | Frederick Muriuki Muriithi | |
2024-08-05 | Fix bugs in POST wrapper for OAuth2 client | Frederick Muriuki Muriithi | |
* Call the correct __post__ function * Set up the headers appropriately | |||
2024-08-05 | Add OAuth2/JWK-related endpoints. | Frederick Muriuki Muriithi | |
2024-07-26 | Add module to handle the JSON Web Keys. | Frederick Muriuki Muriithi | |
2024-07-26 | Add wrappers for OAuth2Session's `get` and `post` methods. Fix bugs. | Frederick Muriuki Muriithi | |
2024-07-26 | Provide UI for enabling login to the application. | Frederick Muriuki Muriithi | |
2024-07-26 | OAuth2 package: Handle OAuth2 related issues | Frederick Muriuki Muriithi | |
Adds utilities to handle talking to the authentication/authorisation server. |