Now all the tests runs too.
This commit is contained in:
@@ -871,7 +871,7 @@ class Entity(HTTPBase):
|
|||||||
logger.debug("XMLSTR: %s" % xmlstr)
|
logger.debug("XMLSTR: %s" % xmlstr)
|
||||||
|
|
||||||
if response:
|
if response:
|
||||||
if outstanding_certs is not None:
|
if outstanding_certs:
|
||||||
_, key_file = make_temp(
|
_, key_file = make_temp(
|
||||||
"%s" % outstanding_certs[
|
"%s" % outstanding_certs[
|
||||||
response.in_response_to]["key"], decode=False)
|
response.in_response_to]["key"], decode=False)
|
||||||
|
@@ -829,7 +829,7 @@ class AuthnResponse(StatusResponse):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def verify(self, key_file):
|
def verify(self, key_file=""):
|
||||||
""" Verify that the assertion is syntactically correct and
|
""" Verify that the assertion is syntactically correct and
|
||||||
the signature is correct if present.
|
the signature is correct if present.
|
||||||
:param key_file: If not the default key file should be used this is it.
|
:param key_file: If not the default key file should be used this is it.
|
||||||
|
@@ -92,16 +92,6 @@ class TestResponse:
|
|||||||
assert isinstance(resp, AuthnResponse)
|
assert isinstance(resp, AuthnResponse)
|
||||||
|
|
||||||
|
|
||||||
def test_only_use_keys_in_metadata(self):
|
|
||||||
conf = config.SPConfig()
|
|
||||||
conf.load_file("sp_2_conf")
|
|
||||||
|
|
||||||
sc = security_context(conf)
|
|
||||||
# should fail
|
|
||||||
raises(MissingKey,
|
|
||||||
'sc.correctly_signed_response("%s" % self._sign_resp_)')
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
t = TestResponse()
|
t = TestResponse()
|
||||||
t.setup_class()
|
t.setup_class()
|
||||||
|
Reference in New Issue
Block a user