@@ -98,7 +98,8 @@ def status_detail_type__from_string(xml_string):
98
98
99
99
100
100
class AuthnContextComparisonType_ (SamlBase ):
101
- """The urn:oasis:names:tc:SAML:2.0:protocol:AuthnContextComparisonType element """
101
+ """The urn:oasis:names:tc:SAML:2.0:protocol:AuthnContextComparisonType
102
+ element """
102
103
103
104
c_tag = 'AuthnContextComparisonType'
104
105
c_namespace = NAMESPACE
@@ -135,12 +136,12 @@ def __init__(self,
135
136
text = None ,
136
137
extension_elements = None ,
137
138
extension_attributes = None ,
138
- ):
139
+ ):
139
140
SamlBase .__init__ (self ,
140
141
text = text ,
141
142
extension_elements = extension_elements ,
142
143
extension_attributes = extension_attributes ,
143
- )
144
+ )
144
145
self .format = format
145
146
self .sp_name_qualifier = sp_name_qualifier
146
147
self .allow_create = allow_create
@@ -375,7 +376,9 @@ def __init__(self,
375
376
376
377
377
378
class AssertionIDRequestType_ (RequestAbstractType_ ):
378
- """The urn:oasis:names:tc:SAML:2.0:protocol:AssertionIDRequestType element """
379
+ """
380
+ The urn:oasis:names:tc:SAML:2.0:protocol:AssertionIDRequestType element
381
+ """
379
382
380
383
c_tag = 'AssertionIDRequestType'
381
384
c_namespace = NAMESPACE
@@ -422,16 +425,18 @@ def assertion_id_request_type__from_string(xml_string):
422
425
423
426
424
427
class SubjectQueryAbstractType_ (RequestAbstractType_ ):
425
- """The urn:oasis:names:tc:SAML:2.0:protocol:SubjectQueryAbstractType element """
428
+ """
429
+ The urn:oasis:names:tc:SAML:2.0:protocol:SubjectQueryAbstractType element
430
+ """
426
431
427
432
c_tag = 'SubjectQueryAbstractType'
428
433
c_namespace = NAMESPACE
429
434
c_children = RequestAbstractType_ .c_children .copy ()
430
435
c_attributes = RequestAbstractType_ .c_attributes .copy ()
431
436
c_child_order = RequestAbstractType_ .c_child_order [:]
432
437
c_cardinality = RequestAbstractType_ .c_cardinality .copy ()
433
- c_children ['{urn:oasis:names:tc:SAML:2.0:assertion}Subject' ] = ('subject' ,
434
- saml .Subject )
438
+ c_children ['{urn:oasis:names:tc:SAML:2.0:assertion}Subject' ] = (
439
+ 'subject' , saml .Subject )
435
440
c_child_order .extend (['subject' ])
436
441
437
442
def __init__ (self ,
@@ -463,7 +468,8 @@ def __init__(self,
463
468
464
469
465
470
class RequestedAuthnContextType_ (SamlBase ):
466
- """The urn:oasis:names:tc:SAML:2.0:protocol:RequestedAuthnContextType element """
471
+ """The urn:oasis:names:tc:SAML:2.0:protocol:RequestedAuthnContextType
472
+ element """
467
473
468
474
c_tag = 'RequestedAuthnContextType'
469
475
c_namespace = NAMESPACE
@@ -473,8 +479,8 @@ class RequestedAuthnContextType_(SamlBase):
473
479
c_cardinality = SamlBase .c_cardinality .copy ()
474
480
c_children [
475
481
'{urn:oasis:names:tc:SAML:2.0:assertion}AuthnContextClassRef' ] = (
476
- 'authn_context_class_ref' ,
477
- [saml .AuthnContextClassRef ])
482
+ 'authn_context_class_ref' ,
483
+ [saml .AuthnContextClassRef ])
478
484
c_cardinality ['authn_context_class_ref' ] = {"min" : 0 }
479
485
c_children ['{urn:oasis:names:tc:SAML:2.0:assertion}AuthnContextDeclRef' ] = (
480
486
'authn_context_decl_ref' ,
@@ -555,7 +561,8 @@ def attribute_query_type__from_string(xml_string):
555
561
556
562
557
563
class AuthzDecisionQueryType_ (SubjectQueryAbstractType_ ):
558
- """The urn:oasis:names:tc:SAML:2.0:protocol:AuthzDecisionQueryType element """
564
+ """The urn:oasis:names:tc:SAML:2.0:protocol:AuthzDecisionQueryType
565
+ element """
559
566
560
567
c_tag = 'AuthzDecisionQueryType'
561
568
c_namespace = NAMESPACE
@@ -863,7 +870,9 @@ def subject_query_from_string(xml_string):
863
870
864
871
865
872
class RequestedAuthnContext (RequestedAuthnContextType_ ):
866
- """The urn:oasis:names:tc:SAML:2.0:protocol:RequestedAuthnContext element """
873
+ """
874
+ The urn:oasis:names:tc:SAML:2.0:protocol:RequestedAuthnContext element
875
+ """
867
876
868
877
c_tag = 'RequestedAuthnContext'
869
878
c_namespace = NAMESPACE
@@ -958,7 +967,9 @@ def artifact_resolve_from_string(xml_string):
958
967
959
968
960
969
class ManageNameIDRequestType_ (RequestAbstractType_ ):
961
- """The urn:oasis:names:tc:SAML:2.0:protocol:ManageNameIDRequestType element """
970
+ """
971
+ The urn:oasis:names:tc:SAML:2.0:protocol:ManageNameIDRequestType element
972
+ """
962
973
963
974
c_tag = 'ManageNameIDRequestType'
964
975
c_namespace = NAMESPACE
@@ -1090,19 +1101,20 @@ def __init__(self,
1090
1101
text = None ,
1091
1102
extension_elements = None ,
1092
1103
extension_attributes = None ):
1093
- SubjectQueryAbstractType_ .__init__ (self ,
1094
- subject = subject ,
1095
- issuer = issuer ,
1096
- signature = signature ,
1097
- extensions = extensions ,
1098
- id = id ,
1099
- version = version ,
1100
- issue_instant = issue_instant ,
1101
- destination = destination ,
1102
- consent = consent ,
1103
- text = text ,
1104
- extension_elements = extension_elements ,
1105
- extension_attributes = extension_attributes )
1104
+ SubjectQueryAbstractType_ .__init__ (
1105
+ self ,
1106
+ subject = subject ,
1107
+ issuer = issuer ,
1108
+ signature = signature ,
1109
+ extensions = extensions ,
1110
+ id = id ,
1111
+ version = version ,
1112
+ issue_instant = issue_instant ,
1113
+ destination = destination ,
1114
+ consent = consent ,
1115
+ text = text ,
1116
+ extension_elements = extension_elements ,
1117
+ extension_attributes = extension_attributes )
1106
1118
self .requested_authn_context = requested_authn_context
1107
1119
self .session_index = session_index
1108
1120
@@ -1293,7 +1305,8 @@ def __init__(self,
1293
1305
self .protocol_binding = protocol_binding
1294
1306
self .assertion_consumer_service_index = assertion_consumer_service_index
1295
1307
self .assertion_consumer_service_url = assertion_consumer_service_url
1296
- self .attribute_consuming_service_index = attribute_consuming_service_index
1308
+ self .attribute_consuming_service_index = \
1309
+ attribute_consuming_service_index
1297
1310
self .provider_name = provider_name
1298
1311
1299
1312
@@ -1326,7 +1339,7 @@ class StatusType_(SamlBase):
1326
1339
c_child_order = SamlBase .c_child_order [:]
1327
1340
c_cardinality = SamlBase .c_cardinality .copy ()
1328
1341
# Added further down to avoid undefined references
1329
- #c_children['{urn:oasis:names:tc:SAML:2.0:protocol}StatusCode'] = (
1342
+ # c_children['{urn:oasis:names:tc:SAML:2.0:protocol}StatusCode'] = (
1330
1343
# 'status_code', StatusCode)
1331
1344
c_children ['{urn:oasis:names:tc:SAML:2.0:protocol}StatusMessage' ] = (
1332
1345
'status_message' , StatusMessage )
@@ -1535,7 +1548,9 @@ def logout_response_from_string(xml_string):
1535
1548
1536
1549
1537
1550
class NameIDMappingResponseType_ (StatusResponseType_ ):
1538
- """The urn:oasis:names:tc:SAML:2.0:protocol:NameIDMappingResponseType element """
1551
+ """
1552
+ The urn:oasis:names:tc:SAML:2.0:protocol:NameIDMappingResponseType element
1553
+ """
1539
1554
1540
1555
c_tag = 'NameIDMappingResponseType'
1541
1556
c_namespace = NAMESPACE
@@ -1621,7 +1636,8 @@ def artifact_response_from_string(xml_string):
1621
1636
1622
1637
1623
1638
class NameIDMappingResponse (NameIDMappingResponseType_ ):
1624
- """The urn:oasis:names:tc:SAML:2.0:protocol:NameIDMappingResponse element """
1639
+ """The urn:oasis:names:tc:SAML:2.0:protocol:NameIDMappingResponse element
1640
+ """
1625
1641
1626
1642
c_tag = 'NameIDMappingResponse'
1627
1643
c_namespace = NAMESPACE
@@ -1635,7 +1651,7 @@ def name_id_mapping_response_from_string(xml_string):
1635
1651
return saml2 .create_class_from_xml_string (NameIDMappingResponse , xml_string )
1636
1652
1637
1653
1638
- #..................
1654
+ # ..................
1639
1655
# ['StatusCodeType', 'StatusCode']
1640
1656
class StatusCodeType_ (SamlBase ):
1641
1657
"""The urn:oasis:names:tc:SAML:2.0:protocol:StatusCodeType element """
@@ -1713,7 +1729,8 @@ def status_code_from_string(xml_string):
1713
1729
AuthnQueryType_ .c_tag : authn_query_type__from_string ,
1714
1730
RequestedAuthnContext .c_tag : requested_authn_context_from_string ,
1715
1731
RequestedAuthnContextType_ .c_tag : requested_authn_context_type__from_string ,
1716
- AuthnContextComparisonType_ .c_tag : authn_context_comparison_type__from_string ,
1732
+ AuthnContextComparisonType_ .c_tag :
1733
+ authn_context_comparison_type__from_string ,
1717
1734
AttributeQuery .c_tag : attribute_query_from_string ,
1718
1735
AttributeQueryType_ .c_tag : attribute_query_type__from_string ,
1719
1736
AuthzDecisionQuery .c_tag : authz_decision_query_from_string ,
@@ -1751,7 +1768,8 @@ def status_code_from_string(xml_string):
1751
1768
NameIDMappingRequest .c_tag : name_id_mapping_request_from_string ,
1752
1769
NameIDMappingRequestType_ .c_tag : name_id_mapping_request_type__from_string ,
1753
1770
NameIDMappingResponse .c_tag : name_id_mapping_response_from_string ,
1754
- NameIDMappingResponseType_ .c_tag : name_id_mapping_response_type__from_string ,
1771
+ NameIDMappingResponseType_ .c_tag :
1772
+ name_id_mapping_response_type__from_string ,
1755
1773
}
1756
1774
1757
1775
ELEMENT_BY_TAG = {
0 commit comments