From 23ed064be0ce478fd3730fb0f9c12b2bebe0b83c Mon Sep 17 00:00:00 2001 From: Dean Liu Date: Fri, 3 Feb 2023 16:10:55 -0800 Subject: [PATCH 1/2] Add environment to JWT 403 logging --- confidant/routes/jwks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confidant/routes/jwks.py b/confidant/routes/jwks.py index 7deed43d..b19792aa 100644 --- a/confidant/routes/jwks.py +++ b/confidant/routes/jwks.py @@ -61,7 +61,7 @@ def get_token(id): 'environment': environment, } ): - msg = f'{logged_in_user} does not have access to get JWT {id}' + msg = f'{logged_in_user} does not have access to get JWT {id} in env {environment}' error_msg = {'error': msg} return jsonify(error_msg), 403 From 04dc0ca08b03eb9a8e171cda0339e56e773428ab Mon Sep 17 00:00:00 2001 From: Dean Liu Date: Fri, 3 Feb 2023 16:15:50 -0800 Subject: [PATCH 2/2] gah --- confidant/routes/jwks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confidant/routes/jwks.py b/confidant/routes/jwks.py index b19792aa..3c37dd0e 100644 --- a/confidant/routes/jwks.py +++ b/confidant/routes/jwks.py @@ -61,7 +61,8 @@ def get_token(id): 'environment': environment, } ): - msg = f'{logged_in_user} does not have access to get JWT {id} in env {environment}' + msg = f'{logged_in_user} does not have access to get JWT {id} ' \ + f'in env {environment}' error_msg = {'error': msg} return jsonify(error_msg), 403