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