about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-19 12:28:36 -0500
committerFrederick Muriuki Muriithi2024-07-31 09:30:25 -0500
commit7a362b31ac5cf3a7013eca74ea9659c1569eaa64 (patch)
treea5c624a24d45a929214f21f5d3cfcc3813cc8848
parent12453be99f2bf21842a9e488ecf72c06a06625f0 (diff)
downloadgn-auth-7a362b31ac5cf3a7013eca74ea9659c1569eaa64.tar.gz
Bug: Pass in app rather than path.
-rw-r--r--gn_auth/auth/authentication/oauth2/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gn_auth/auth/authentication/oauth2/views.py b/gn_auth/auth/authentication/oauth2/views.py
index 679eace..efaae56 100644
--- a/gn_auth/auth/authentication/oauth2/views.py
+++ b/gn_auth/auth/authentication/oauth2/views.py
@@ -1,7 +1,6 @@
 """Endpoints for the oauth2 server"""
 import uuid
 import traceback
-from pathlib import Path
 from urllib.parse import urlparse
 
 from authlib.oauth2.rfc6749.errors import InvalidClientError
@@ -128,5 +127,4 @@ def public_jwks():
         "documentation": (
             "The keys are listed in order of creation, from the oldest (first) "
             "to the newest (last)."),
-        "jwks": tuple(key.as_dict() for key in list_jwks(jwks_directory(
-        Path(app.config["GN_AUTH_SECRETS"]).parent)))})
+        "jwks": tuple(key.as_dict() for key in list_jwks(jwks_directory(app)))})