From 5af9a3d3be4b7b5b0b7de9e616ac009d37800fc1 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 24 Aug 2021 16:51:08 +0200 Subject: [PATCH] sources/saml: fix error when getting metadata Signed-off-by: Jens Langhammer --- authentik/sources/saml/api.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/authentik/sources/saml/api.py b/authentik/sources/saml/api.py index abc9216f8..ec6a78799 100644 --- a/authentik/sources/saml/api.py +++ b/authentik/sources/saml/api.py @@ -53,6 +53,11 @@ class SAMLSourceViewSet(UsedByMixin, ModelViewSet): return Response( { "metadata": metadata, - "download_url": reverse("authentik_sources_saml:metadata"), + "download_url": reverse( + "authentik_sources_saml:metadata", + kwargs={ + "source_slug": source.slug, + }, + ), } )