give Spawners a handle on the Authenticator

band-aid for spawner-authenticator pairs
This commit is contained in:
Min RK
2015-09-11 11:57:41 +02:00
parent 63a476f9a6
commit a451f11cd3
4 changed files with 5 additions and 1 deletions

View File

@@ -711,6 +711,7 @@ class JupyterHub(Application):
self.log.debug("Loading state for %s from db", user.name)
user.spawner = spawner = self.spawner_class(
user=user, hub=self.hub, config=self.config, db=self.db,
authenticator=self.authenticator,
)
status = yield spawner.poll()
if status is None: