Skip to content

Commit

Permalink
Fixing types
Browse files Browse the repository at this point in the history
  • Loading branch information
djpugh committed Dec 14, 2020
1 parent 1a8cc6b commit 39293d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fastapi_aad_auth/ui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 39293d0

Please sign in to comment.