aboutsummaryrefslogtreecommitdiff
path: root/gn_auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-23 11:44:42 +0300
committerFrederick Muriuki Muriithi2024-04-23 11:44:42 +0300
commit326b88195d8ddaf968442034aa84005b05fdf4b0 (patch)
tree72ec311fac2a9efbae17c735a98e0f22de0cf3a7 /gn_auth
parent35a7a72071c4e712c536dd5d9c634146429d33ee (diff)
downloadgn-auth-326b88195d8ddaf968442034aa84005b05fdf4b0.tar.gz
Make the keys storage dir depend on the more generic uploads directory
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn_auth/__init__.py b/gn_auth/__init__.py
index f7e2620..224b681 100644
--- a/gn_auth/__init__.py
+++ b/gn_auth/__init__.py
@@ -65,7 +65,9 @@ def parse_ssl_public_keys(app):
with open(keypath) as _sslkey:
return JsonWebKey.import_key(_sslkey.read())
- key_storage_dir = app.config["CLIENTS_SSL_PUBLIC_KEYS_DIR"]
+ key_storage_dir = Path(app.config["UPLOADS_DIR"]).joinpath(
+ "clients-ssl-keys")
+ app.config["CLIENTS_SSL_PUBLIC_KEYS_DIR"] = key_storage_dir
app.config["SSL_PUBLIC_KEYS"] = {
_key.as_dict()["kid"]: _key for _key in (
__parse_key__(Path(key_storage_dir).joinpath(key))