From a293a14f2aebec9ae5055c95aa830c625c154399 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 10 May 2021 22:09:41 +0200 Subject: [PATCH] outposts: re-add _config for backwards compat Signed-off-by: Jens Langhammer --- authentik/outposts/api/outposts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/authentik/outposts/api/outposts.py b/authentik/outposts/api/outposts.py index d026fa503..7268cfdf6 100644 --- a/authentik/outposts/api/outposts.py +++ b/authentik/outposts/api/outposts.py @@ -18,6 +18,8 @@ class OutpostSerializer(ModelSerializer): """Outpost Serializer""" config = JSONField(validators=[is_dict], source="_config") + # TODO: Remove _config again, this is only here for legacy with older outposts + _config = JSONField(validators=[is_dict], read_only=True) providers_obj = ProviderSerializer(source="providers", many=True, read_only=True) def validate_config(self, config) -> dict: @@ -40,6 +42,7 @@ class OutpostSerializer(ModelSerializer): "service_connection", "token_identifier", "config", + "_config", ]