aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/__init__.py
AgeCommit message (Expand)Author
2024-07-17Remove token and user detail handling from @app.before_request...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. Frederick Muriuki Muriithi
2024-07-17Reorganise code to do ALL configs at the top and then logging...In order to ensure that logging works as expected, make sure it is set up after all settings are in place. Frederick Muriuki Muriithi
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 logging...Add logging to genenetwork2 Frederick Muriuki Muriithi
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 key...* 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. Frederick Muriuki Muriithi
2024-04-23Client needs access to PRIVATE KEY, not PUBLIC KEY.Frederick Muriuki Muriithi
2024-04-23SSL_KEY_PAIR_PUBLIC_KEY: New setting...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. Frederick Muriuki Muriithi
2024-03-26Import user_logged_in from the clients module....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> Munyoki Kilyungi
2024-03-26Integrate CKEditor into metadata editing....* 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> Munyoki Kilyungi
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....We move all modules under a gn2 directory. This is important for "correct" packaging and deployment as a Guix service. Arun Isaac