File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ class SubjectConfirmationDataType_(SamlBase):
441
441
c_attributes = SamlBase .c_attributes .copy ()
442
442
c_child_order = SamlBase .c_child_order [:]
443
443
c_cardinality = SamlBase .c_cardinality .copy ()
444
- c_attributes ['NotBefore' ] = ('not_before' , 'AsTime ' , False )
444
+ c_attributes ['NotBefore' ] = ('not_before' , 'dateTime ' , False )
445
445
c_attributes ['NotOnOrAfter' ] = ('not_on_or_after' , 'dateTime' , False )
446
446
c_attributes ['Recipient' ] = ('recipient' , 'anyURI' , False )
447
447
c_attributes ['InResponseTo' ] = ('in_response_to' , 'NCName' , False )
Original file line number Diff line number Diff line change @@ -851,6 +851,13 @@ def testUsingTestData(self):
851
851
assert sc .subject_confirmation_data .in_response_to == "responseID"
852
852
assert sc .subject_confirmation_data .address == "127.0.0.1"
853
853
854
+ def testVerify (self ):
855
+ """Test SubjectConfirmation verify"""
856
+
857
+ sc = saml .subject_confirmation_from_string (
858
+ saml2_data .TEST_SUBJECT_CONFIRMATION )
859
+ assert sc .verify ()
860
+
854
861
855
862
class TestSubject :
856
863
def setup_class (self ):
You can’t perform that action at this time.
0 commit comments