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, + }, + ), } )