INNER CODE UNIT · Python
prepare
jupyter-server/jupyverse · plugins/auth/src/fps_auth/main.py:20
async def prepare(self) -> None:
self.put(self.config, AuthConfig)
app = await self.get(App)
frontend_config = await self.get(FrontendConfig)
auth = auth_factory(app, self.config, frontend_config)
self.put(auth, Auth)
await auth.db.create_db_and_tables()
if self.config.test:
try:
await auth.create_user(
username="admin@jupyter.com",
email="admin@jupyter.com",
password="jupyverse",
permissions={"admin": ["read", "write"]},