fix SAML Request not being parsed all the time

This commit is contained in:
Jens Langhammer 2019-04-17 17:53:05 +02:00
parent 146dd747f1
commit e47b9f0d57
2 changed files with 3 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class Processor:
self._remote = remote self._remote = remote
self._logger = getLogger(__name__) self._logger = getLogger(__name__)
self._system_params['ISSUER'] = self._remote.issuer self._system_params['ISSUER'] = self._remote.issuer
self._logger.info('processor configured') self._logger.debug('processor configured')
def _build_assertion(self): def _build_assertion(self):
"""Builds _assertion_params.""" """Builds _assertion_params."""
@ -295,6 +295,7 @@ class Processor:
def generate_response(self): def generate_response(self):
"""Processes request and returns template variables suitable for a response.""" """Processes request and returns template variables suitable for a response."""
# Build the assertion and response. # Build the assertion and response.
self.can_handle(self._django_request)
self._validate_user() self._validate_user()
self._build_assertion() self._build_assertion()
self._format_assertion() self._format_assertion()

View File

@ -205,7 +205,7 @@ 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 = self.application.provider.issuer entity_id = self.provider.issuer
slo_url = request.build_absolute_uri(reverse('passbook_saml_idp:saml-logout', kwargs={ slo_url = request.build_absolute_uri(reverse('passbook_saml_idp:saml-logout', kwargs={
'application': application 'application': application
})) }))