Skip to content

Commit

Permalink
print kc response
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarm committed Sep 11, 2024
1 parent 42ddb6c commit a71fe42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chart/f7t4jhub/files/jupyterhub-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ async def refresh_user(self, user, handler=None):
}

response = requests.post(self.token_url, data=params, headers=headers)
self.log.debug(f"[refresh_user] Request to KeyCloak: {response} {response.json()}")
if response.status_code != 200:
self.log.debug(f"[refresh_user] Request to KeyCloak: {response.json()}")
return False

token_response = response.json()

auth_state['token_response'].update(token_response)
Expand Down

0 comments on commit a71fe42

Please sign in to comment.