File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -600,8 +600,8 @@ def get_xml_string_with_self_contained_assertion_within_advice_encrypted_asserti
600
600
self .assertion .advice .encrypted_assertion :
601
601
if tmp_encrypted_assertion .encrypted_data is None :
602
602
prefix_map = self .get_prefix_map ([
603
- tmp_encrypted_assertion ._to_element_tree ().find (
604
- assertion_tag )])
603
+ tmp_encrypted_assertion ._to_element_tree ().find (
604
+ assertion_tag )])
605
605
tree = self ._to_element_tree ()
606
606
encs = tree .find (assertion_tag ).find (advice_tag ).findall (
607
607
tmp_encrypted_assertion ._to_element_tree ().tag )
@@ -1018,3 +1018,19 @@ def extension_elements_as_dict(extension_elements, onts):
1018
1018
except KeyError :
1019
1019
res [elem .c_tag ] = [elem ]
1020
1020
return res
1021
+
1022
+
1023
+ REQUIRED = 2
1024
+
1025
+
1026
+ def is_required_attribute (cls , attr ):
1027
+ """
1028
+ Check if the attribute is a required attribute for a specific SamlBase
1029
+ class.
1030
+
1031
+ :param cls: The class
1032
+ :param attr: An attribute, note it must be the name of the attribute
1033
+ that appears in the XSD in which the class is defined.
1034
+ :return: True if required
1035
+ """
1036
+ return cls .c_attributes [attr ][REQUIRED ]
You can’t perform that action at this time.
0 commit comments