sources/saml: fix error when getting metadata

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-24 16:51:08 +02:00
parent dec34bc948
commit 5af9a3d3be
1 changed files with 6 additions and 1 deletions

View File

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