From a30b32fbbf085e6833884994402b5f8a8fba1bbf Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 15 May 2021 17:46:53 +0200 Subject: [PATCH] outposts: fix missing default for OutpostState.for_channel Signed-off-by: Jens Langhammer --- authentik/outposts/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/outposts/models.py b/authentik/outposts/models.py index 85a1b674eb..35f6d68cdd 100644 --- a/authentik/outposts/models.py +++ b/authentik/outposts/models.py @@ -440,7 +440,7 @@ class OutpostState: def for_channel(outpost: Outpost, channel: str) -> "OutpostState": """Get state for a single channel""" key = f"{outpost.state_cache_prefix}_{channel}" - default_data = {"uid": channel} + default_data = {"uid": channel, "channel_id": channel} data = cache.get(key, default_data) if isinstance(data, str): cache.delete(key)