INNER CODE UNIT · Python

__init__

jupyter-server/jupyverse · plugins/auth/src/fps_auth/main.py:16

    def __init__(self, name: str, **kwargs):
        super().__init__(name)
        self.config = _AuthConfig(**kwargs)

    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(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…