From 8d5abeaede38b9c9d2d19ae967b7b54bb6c9f5b7 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 17 Dec 2018 11:52:02 +0100 Subject: [PATCH] saml_idp: fix open todos --- passbook/saml_idp/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/passbook/saml_idp/base.py b/passbook/saml_idp/base.py index 34d1f93c8..83fc4ff56 100644 --- a/passbook/saml_idp/base.py +++ b/passbook/saml_idp/base.py @@ -177,9 +177,8 @@ class Processor: def _format_response(self): """Formats _response_params as _response_xml.""" assertion_id = self._assertion_params['ASSERTION_ID'] - # TODO: Get application/provider instance self._response_xml = xml_render.get_response_xml(self._response_params, - saml_provider=None, + saml_provider=self._remote, assertion_id=assertion_id) def _get_django_response_params(self): @@ -188,7 +187,7 @@ class Processor: 'acs_url': self._request_params['ACS_URL'], 'saml_response': self._saml_response, 'relay_state': self._relay_state, - 'autosubmit': False, # TODO: use autosubmit from application + 'autosubmit': self._remote.application, } def _parse_request(self):