set api_token
This commit is contained in:
parent
cd4f60b564
commit
4915ea4f30
|
@ -168,12 +168,13 @@ hub:
|
|||
from tornado.ioloop import IOLoop
|
||||
from tornado.log import app_log
|
||||
from tornado.web import Application, RequestHandler, authenticated
|
||||
from jupyterhub.services.auth import HubOAuthenticated
|
||||
from jupyterhub.services.auth import HubAuthenticated
|
||||
|
||||
|
||||
class RefreshHandler(HubOAuthenticated, RequestHandler):
|
||||
class RefreshHandler(HubAuthenticated, RequestHandler):
|
||||
def initialize(self):
|
||||
self.hub_auth = self.get_current_user()
|
||||
self.api_token = os.environ.get('JUPYTERHUB_API_TOKEN', 'THIS IS A DUMMY THING')
|
||||
app_log.info(f"DEBUG: In refresh initialize {self.api_token}")
|
||||
@authenticated
|
||||
def get(self):
|
||||
# app_log.info(f"DEBUG: In refresh get {os.environ}")
|
||||
|
|
Loading…
Reference in a new issue