Skip to content

Commit

Permalink
remove login last chars of token
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarm committed Sep 12, 2024
1 parent e5e790b commit 3e75b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chart/f7t4jhub/files/jupyterhub-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 3e75b84

Please sign in to comment.