INNER CODE UNIT · Python

AuthFiefModule

jupyter-server/jupyverse · plugins/auth_fief/src/fps_auth_fief/main.py:9

class AuthFiefModule(Module):
    def __init__(self, name: str, **kwargs):
        super().__init__(name)
        self.config = _AuthFiefConfig(**kwargs)

    async def prepare(self) -> None:
        self.put(self.config, AuthConfig)

        app = await self.get(App)

        auth_fief = auth_factory(app, self.config)
        self.put(auth_fief, Auth)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…