From 4157a0780d566c7a0015425a2c8202cd6b8d7ed4 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 24 Dec 2020 13:04:52 +0100 Subject: [PATCH] core: make application's provider not required --- authentik/core/api/applications.py | 2 +- swagger.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/authentik/core/api/applications.py b/authentik/core/api/applications.py index 689d045f9..c65da9043 100644 --- a/authentik/core/api/applications.py +++ b/authentik/core/api/applications.py @@ -22,7 +22,7 @@ class ApplicationSerializer(ModelSerializer): """Application Serializer""" launch_url = SerializerMethodField() - provider = ProviderSerializer(source="get_provider") + provider = ProviderSerializer(source="get_provider", required=False) def get_launch_url(self, instance: Application) -> str: """Get generated launch URL""" diff --git a/swagger.yaml b/swagger.yaml index a60567fc3..ca76440f2 100755 --- a/swagger.yaml +++ b/swagger.yaml @@ -6777,7 +6777,6 @@ definitions: required: - name - slug - - provider type: object properties: pk: