INNER CODE UNIT · Python
__init__
jupyter-server/jupyverse · plugins/auth_fief/src/fps_auth_fief/main.py:10
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)