From 39293d0a7594d30562239fbbdcf76202e227b96b Mon Sep 17 00:00:00 2001 From: David Pugh Date: Mon, 14 Dec 2020 21:44:31 +0000 Subject: [PATCH] Fixing types --- src/fastapi_aad_auth/ui/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fastapi_aad_auth/ui/__init__.py b/src/fastapi_aad_auth/ui/__init__.py index 33bb3ab..713af00 100644 --- a/src/fastapi_aad_auth/ui/__init__.py +++ b/src/fastapi_aad_auth/ui/__init__.py @@ -35,6 +35,8 @@ def __init__(self, config: 'config.Config', authenticator: 'auth.Authenticator', """ super().__init__() self.config = config + if base_context is None: + base_context = dict() self._base_context = base_context self._authenticator = authenticator @@ -45,6 +47,7 @@ def __init__(self, config: 'config.Config', authenticator: 'auth.Authenticator', def _login(self, request: Request, *args, **kwargs): """Provide the Login UI.""" + context = self._base_context.copy() context.update(kwargs) # type: ignore if 'app_name' not in context: