Exemplo n.º 1
0
 def test_assertion_rendering(self):
     # Verifies that the xml rendering is OK.
     params = {}
     params.update(IDP_PARAMS)
     params.update(REQUEST_PARAMS)
     params.update(ASSERTION_SALESFORCE_PARAMS)
     got = xml_render.get_assertion_salesforce_xml(params, signed=False)
     self._test(got, ASSERTION_SALESFORCE_XML)
Exemplo n.º 2
0
 def test_signed_assertion(self):
     # This test verifies that the assertion got signed properly.
     params = {}
     params.update(IDP_PARAMS)
     params.update(REQUEST_PARAMS)
     params.update(ASSERTION_SALESFORCE_PARAMS)
     got = xml_render.get_assertion_salesforce_xml(params, signed=True)
     self._test(got, SIGNED_ASSERTION_SALESFORCE_XML)
Exemplo n.º 3
0
 def test_signed_assertion(self):
     # This test verifies that the assertion got signed properly.
     params = {}
     params.update(IDP_PARAMS)
     params.update(REQUEST_PARAMS)
     params.update(ASSERTION_SALESFORCE_PARAMS)
     got = xml_render.get_assertion_salesforce_xml(params, signed=True)
     self._test(got, SIGNED_ASSERTION_SALESFORCE_XML)
Exemplo n.º 4
0
 def test_assertion_rendering(self):
     # Verifies that the xml rendering is OK.
     params = {}
     params.update(IDP_PARAMS)
     params.update(REQUEST_PARAMS)
     params.update(ASSERTION_SALESFORCE_PARAMS)
     got = xml_render.get_assertion_salesforce_xml(params, signed=False)
     self._test(got, ASSERTION_SALESFORCE_XML)
Exemplo n.º 5
0
 def _format_assertion(self):
     # NOTE: This uses the SalesForce assertion for the demo.
     self._assertion_xml = xml_render.get_assertion_salesforce_xml(self._assertion_params, signed=True)
Exemplo n.º 6
0
 def _format_assertion(self):
     # NOTE: This uses the SalesForce assertion for the demo.
     self._assertion_params['ATTRIBUTES'] = {
         'foo': 'bar',
     }
     self._assertion_xml = xml_render.get_assertion_salesforce_xml(self._assertion_params, signed=True)