fix Server Error when downloading metadata
This commit is contained in:
parent
63aa48d981
commit
01b0eb159a
|
@ -7,6 +7,4 @@ class GitLabProcessor(Processor):
|
||||||
"""GitLab Response Handler Processor for testing against django-saml2-sp."""
|
"""GitLab Response Handler Processor for testing against django-saml2-sp."""
|
||||||
|
|
||||||
def _determine_audience(self):
|
def _determine_audience(self):
|
||||||
# Nextcloud expects an audience in this format
|
|
||||||
# https://<host>
|
|
||||||
self._audience = self._remote.acs_url.replace('/users/auth/saml/callback', '')
|
self._audience = self._remote.acs_url.replace('/users/auth/saml/callback', '')
|
||||||
|
|
|
@ -206,7 +206,9 @@ class DescriptorDownloadView(AccessRequiredView):
|
||||||
def get(self, request, application):
|
def get(self, request, application):
|
||||||
"""Replies with the XML Metadata IDSSODescriptor."""
|
"""Replies with the XML Metadata IDSSODescriptor."""
|
||||||
entity_id = CONFIG.y('saml_idp.issuer')
|
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={
|
sso_url = request.build_absolute_uri(reverse('passbook_saml_idp:saml-login', kwargs={
|
||||||
'application': application
|
'application': application
|
||||||
}))
|
}))
|
||||||
|
|
Reference in New Issue