INNER CODE UNIT · Python
prepare
jupyter-server/jupyverse · plugins/auth_jupyterhub/src/fps_auth_jupyterhub/main.py:15
async def prepare(self) -> None:
self.put(self.config, AuthConfig)
app = await self.get(App)
self.auth_jupyterhub = auth_factory(app, self.config)
async with create_task_group() as self.tg:
await self.tg.start(self.auth_jupyterhub.start)
self.put(self.auth_jupyterhub, Auth, teardown_callback=self.auth_jupyterhub.stop)
self.done()