From e47b9f0d57334f249e10c84ef7ed8da56a30b7bf Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 17 Apr 2019 17:53:05 +0200 Subject: [PATCH] fix SAML Request not being parsed all the time --- passbook/saml_idp/base.py | 3 ++- passbook/saml_idp/views.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/passbook/saml_idp/base.py b/passbook/saml_idp/base.py index c9b7a5d05..c394a7bfd 100644 --- a/passbook/saml_idp/base.py +++ b/passbook/saml_idp/base.py @@ -65,7 +65,7 @@ class Processor: self._remote = remote self._logger = getLogger(__name__) self._system_params['ISSUER'] = self._remote.issuer - self._logger.info('processor configured') + self._logger.debug('processor configured') def _build_assertion(self): """Builds _assertion_params.""" @@ -295,6 +295,7 @@ class Processor: def generate_response(self): """Processes request and returns template variables suitable for a response.""" # Build the assertion and response. + self.can_handle(self._django_request) self._validate_user() self._build_assertion() self._format_assertion() diff --git a/passbook/saml_idp/views.py b/passbook/saml_idp/views.py index 069edc8fc..f028e973e 100644 --- a/passbook/saml_idp/views.py +++ b/passbook/saml_idp/views.py @@ -205,7 +205,7 @@ class DescriptorDownloadView(AccessRequiredView): def get(self, request, application): """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={ 'application': application }))