Try the oauth version

This commit is contained in:
Micke Nordin 2024-01-17 15:21:50 +01:00
parent 9cc5fe7a38
commit 3428b6144c
Signed by untrusted user: Micke
GPG key ID: F53C4CC83EDAB3BE

View file

@ -168,10 +168,12 @@ hub:
from tornado.ioloop import IOLoop
from tornado.log import app_log
from tornado.web import Application, RequestHandler, authenticated
from jupyterhub.services.auth import HubAuthenticated
from jupyterhub.services.auth import HubOAuthenticated
class RefreshHandler(HubAuthenticated, RequestHandler):
class RefreshHandler(HubOAuthenticated, RequestHandler):
def initialize(self, hub_auth):
self.hub_auth = hub_auth
@authenticated
def get(self):
# app_log.info(f"DEBUG: In refresh get {os.environ}")