From 01b0eb159a5c5bb8a02af07919694a5416cf962b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 12 Mar 2019 17:08:53 +0100 Subject: [PATCH] fix Server Error when downloading metadata --- passbook/saml_idp/processors/gitlab.py | 2 -- passbook/saml_idp/views.py | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/passbook/saml_idp/processors/gitlab.py b/passbook/saml_idp/processors/gitlab.py index 7afc87ed6..e8558e6f8 100644 --- a/passbook/saml_idp/processors/gitlab.py +++ b/passbook/saml_idp/processors/gitlab.py @@ -7,6 +7,4 @@ class GitLabProcessor(Processor): """GitLab Response Handler Processor for testing against django-saml2-sp.""" def _determine_audience(self): - # Nextcloud expects an audience in this format - # https:// self._audience = self._remote.acs_url.replace('/users/auth/saml/callback', '') diff --git a/passbook/saml_idp/views.py b/passbook/saml_idp/views.py index 147a77399..e9a004208 100644 --- a/passbook/saml_idp/views.py +++ b/passbook/saml_idp/views.py @@ -206,7 +206,9 @@ class DescriptorDownloadView(AccessRequiredView): def get(self, request, application): """Replies with the XML Metadata IDSSODescriptor.""" entity_id = CONFIG.y('saml_idp.issuer') - slo_url = request.build_absolute_uri(reverse('passbook_saml_idp:saml-logout')) + slo_url = request.build_absolute_uri(reverse('passbook_saml_idp:saml-logout', kwargs={ + 'application': application + })) sso_url = request.build_absolute_uri(reverse('passbook_saml_idp:saml-login', kwargs={ 'application': application }))