diff options
author | Frederick Muriuki Muriithi | 2024-04-23 11:44:42 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-04-23 11:44:42 +0300 |
commit | 326b88195d8ddaf968442034aa84005b05fdf4b0 (patch) | |
tree | 72ec311fac2a9efbae17c735a98e0f22de0cf3a7 /gn_auth/__init__.py | |
parent | 35a7a72071c4e712c536dd5d9c634146429d33ee (diff) | |
download | gn-auth-326b88195d8ddaf968442034aa84005b05fdf4b0.tar.gz |
Make the keys storage dir depend on the more generic uploads directory
Diffstat (limited to 'gn_auth/__init__.py')
-rw-r--r-- | gn_auth/__init__.py | 4 |
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)) |