Skip to content
Snippets Groups Projects
Commit cf68b597 authored by Jonathan Villemaire-Krajden's avatar Jonathan Villemaire-Krajden
Browse files

add debug logging.

parent 5b18e4aa
No related branches found
No related tags found
No related merge requests found
import json import json
import logging
import os import os
from jupyterhub.services.auth import HubAuthenticated from jupyterhub.services.auth import HubAuthenticated
...@@ -21,7 +22,9 @@ class AccessTokenHandler(HubAuthenticated, RequestHandler): ...@@ -21,7 +22,9 @@ class AccessTokenHandler(HubAuthenticated, RequestHandler):
@authenticated @authenticated
async def get(self): async def get(self):
user = self.get_current_user() user = self.get_current_user()
logging.debug(user)
user_json = await self._request_token(user['username']) user_json = await self._request_token(user['username'])
logging.debug(user_json)
return user_json['auth_state']['access_token'] return user_json['auth_state']['access_token']
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment