Age | Commit message (Collapse) | Author |
|
Add more logging information to help with tracking and fixing bugs.
|
|
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.
|
|
In order to ensure that logging works as expected, make sure it is set
up after all settings are in place.
|
|
|
|
|
|
|
|
Add logging to genenetwork2
|
|
|
|
* 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.
|
|
|
|
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.
|
|
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>
|
|
* 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>
|
|
|
|
|
|
|
|
We move all modules under a gn2 directory. This is important for
"correct" packaging and deployment as a Guix service.
|