fix Server Error when downloading metadata

This commit is contained in:
Jens Langhammer 2019-03-12 17:08:53 +01:00
parent 63aa48d981
commit 01b0eb159a
2 changed files with 3 additions and 3 deletions

View File

@ -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://<host>
self._audience = self._remote.acs_url.replace('/users/auth/saml/callback', '')

View File

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