Couple of new shortcut methods.
This commit is contained in:
@@ -770,6 +770,11 @@ class SecurityContext(object):
|
|||||||
return self.correctly_signed_message(decoded_xml, "logout_request",
|
return self.correctly_signed_message(decoded_xml, "logout_request",
|
||||||
must, origdoc)
|
must, origdoc)
|
||||||
|
|
||||||
|
def correctly_signed_logout_response(self, decoded_xml, must=False,
|
||||||
|
origdoc=None):
|
||||||
|
return self.correctly_signed_message(decoded_xml, "logout_response",
|
||||||
|
must, origdoc)
|
||||||
|
|
||||||
def correctly_signed_attribute_query(self, decoded_xml, must=False,
|
def correctly_signed_attribute_query(self, decoded_xml, must=False,
|
||||||
origdoc=None):
|
origdoc=None):
|
||||||
return self.correctly_signed_message(decoded_xml, "attribute_query",
|
return self.correctly_signed_message(decoded_xml, "attribute_query",
|
||||||
@@ -781,6 +786,12 @@ class SecurityContext(object):
|
|||||||
"authz_decision_query", must,
|
"authz_decision_query", must,
|
||||||
origdoc)
|
origdoc)
|
||||||
|
|
||||||
|
def correctly_signed_authz_decision_response(self, decoded_xml, must=False,
|
||||||
|
origdoc=None):
|
||||||
|
return self.correctly_signed_message(decoded_xml,
|
||||||
|
"authz_decision_response", must,
|
||||||
|
origdoc)
|
||||||
|
|
||||||
def correctly_signed_name_id_mapping_request(self, decoded_xml, must=False,
|
def correctly_signed_name_id_mapping_request(self, decoded_xml, must=False,
|
||||||
origdoc=None):
|
origdoc=None):
|
||||||
return self.correctly_signed_message(decoded_xml,
|
return self.correctly_signed_message(decoded_xml,
|
||||||
@@ -793,6 +804,18 @@ class SecurityContext(object):
|
|||||||
"name_id_mapping_response",
|
"name_id_mapping_response",
|
||||||
must, origdoc)
|
must, origdoc)
|
||||||
|
|
||||||
|
def correctly_signed_artifact_request(self, decoded_xml, must=False,
|
||||||
|
origdoc=None):
|
||||||
|
return self.correctly_signed_message(decoded_xml,
|
||||||
|
"artifact_request",
|
||||||
|
must, origdoc)
|
||||||
|
|
||||||
|
def correctly_signed_artifact_response(self, decoded_xml, must=False,
|
||||||
|
origdoc=None):
|
||||||
|
return self.correctly_signed_message(decoded_xml,
|
||||||
|
"artifact_response",
|
||||||
|
must, origdoc)
|
||||||
|
|
||||||
def correctly_signed_response(self, decoded_xml, must=False, origdoc=None):
|
def correctly_signed_response(self, decoded_xml, must=False, origdoc=None):
|
||||||
""" Check if a instance is correctly signed, if we have metadata for
|
""" Check if a instance is correctly signed, if we have metadata for
|
||||||
the IdP that sent the info use that, if not use the key that are in
|
the IdP that sent the info use that, if not use the key that are in
|
||||||
|
Reference in New Issue
Block a user