aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/__init__.py
AgeCommit message (Collapse)Author
2024-07-31Improve loggingFrederick Muriuki Muriithi
Add more logging information to help with tracking and fixing bugs.
2024-07-17Remove token and user detail handling from @app.before_requestFrederick Muriuki Muriithi
The token and user details information is handled in the `gn2.wqflask.oauth2.session`. Other parts of the system should make use of that. It also helps avoid some weird "action-at-a-distance" interactions - this forces the code to request what it needs when it needs it and not rely on some global variables.
2024-07-17Reorganise code to do ALL configs at the top and then loggingFrederick Muriuki Muriithi
In order to ensure that logging works as expected, make sure it is set up after all settings are in place.
2024-07-01Link to global search syntax document as markdown on githubzsloan
2024-05-14Consistently use the same OAuthSession clientFrederick Muriuki Muriithi
2024-04-24Use app's logger rather than root logger.Frederick Muriuki Muriithi
2024-04-24Setup loggingFrederick Muriuki Muriithi
Add logging to genenetwork2
2024-04-23Don't fail startup due to missing config.Frederick Muriuki Muriithi
2024-04-23Separate the auth server's public key from app's private keyFrederick Muriuki Muriithi
* Use the app's private key to sign the initial assertions used for retrieving an authorisation token from the auth server. * Use auth server's public key to validate the authorisation tokens got from the auth server.
2024-04-23Client needs access to PRIVATE KEY, not PUBLIC KEY.Frederick Muriuki Muriithi
2024-04-23SSL_KEY_PAIR_PUBLIC_KEY: New settingFrederick Muriuki Muriithi
Define a new setting named SSL_KEY_PAIR_PUBLIC_KEY to hold the path to the SSL key-pair's public key, used with the JWTs.
2024-03-26Import user_logged_in from the clients module.Munyoki Kilyungi
Importing "user_logged_in" in the checks module just to export adds a layer of indirection and makes the code hard to read. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-26Integrate CKEditor into metadata editing.Munyoki Kilyungi
* gn2/wqflask/__init__.py: Register blueprint endpoint for metadata edits. * gn2/wqflask/edit.py (metadata_edit): New function. (save): Ditto. * gn2/wqflask/templates/metadata/dataset.html: New template. * gn2/wqflask/templates/metadata/editor.html: New template. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-05Pick secrets from config file.Frederick Muriuki Muriithi
2024-01-30Create framework for error handling and handle connection errorsFrederick Muriuki Muriithi
2024-01-02Move default settings into gn2 module.Arun Isaac
2023-12-29Namespace all modules under gn2.Arun Isaac
We move all modules under a gn2 directory. This is important for "correct" packaging and deployment as a Guix service.