From 3e75b847bfec16bc790801f6075b23c00989eb34 Mon Sep 17 00:00:00 2001 From: Rafael Sarmiento Date: Thu, 12 Sep 2024 15:06:18 +0200 Subject: [PATCH] remove login last chars of token --- chart/f7t4jhub/files/jupyterhub-config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/f7t4jhub/files/jupyterhub-config.py b/chart/f7t4jhub/files/jupyterhub-config.py index a38fd23..9ba2f9f 100644 --- a/chart/f7t4jhub/files/jupyterhub-config.py +++ b/chart/f7t4jhub/files/jupyterhub-config.py @@ -98,12 +98,12 @@ async def refresh_user(self, user, handler=None): } if time.time() <= auth_state["access_token_expiration_ts"]: - self.log.debug(f"[refresh_user] Reusing access token for {user.name} {auth_state['access_token'][-10:]}") + self.log.debug(f"[refresh_user] Reusing access token for {user.name}") return True response = requests.post(self.token_url, data=params, headers=headers) - self.log.debug(f"[refresh_user] Refreshing access token for {user.name} {response.json()['access_token'][-10:]}") + self.log.debug(f"[refresh_user] Refreshing access token for {user.name}") if response.status_code != 200: self.log.info(f"[refresh_user] Request to KeyCloak: {response.status_code}")