From 7a362b31ac5cf3a7013eca74ea9659c1569eaa64 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 19 Jul 2024 12:28:36 -0500 Subject: Bug: Pass in app rather than path. --- gn_auth/auth/authentication/oauth2/views.py | 4 +--- 1 file changed, 1 insertion(+), 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)))}) -- cgit v1.2.3