File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1317,6 +1317,18 @@ def authn_request_from_string(xml_string):
1317
1317
return saml2 .create_class_from_xml_string (AuthnRequest , xml_string )
1318
1318
1319
1319
1320
+ class HttpParameters ():
1321
+ """GET or POST parameters for Redirecto or POST-SimpleSign bindings"""
1322
+ signature = None
1323
+ sigalg = None
1324
+ # Relaystate and SAML message are stored elsewhere
1325
+ def __init__ (self , dict ):
1326
+ try :
1327
+ self .signature = dict ["Signature" ][0 ]
1328
+ self .sigalg = dict ["SigAlg" ][0 ]
1329
+ except KeyError :
1330
+ pass
1331
+
1320
1332
class StatusType_ (SamlBase ):
1321
1333
"""The urn:oasis:names:tc:SAML:2.0:protocol:StatusType element """
1322
1334
Original file line number Diff line number Diff line change 12
12
ENCODING_BASE64 = 'http://www.w3.org/2000/09/xmldsig#base64'
13
13
14
14
# digest and signature algorithms (not implemented = commented out)
15
+ DIGEST_MD5 = 'http://www.w3.org/2001/04/xmldsig-more#md5' # test framework only!
15
16
DIGEST_SHA1 = 'http://www.w3.org/2000/09/xmldsig#sha1'
16
17
DIGEST_SHA224 = 'http://www.w3.org/2001/04/xmldsig-more#sha224'
17
18
DIGEST_SHA256 = 'http://www.w3.org/2001/04/xmlenc#sha256'
You can’t perform that action at this time.
0 commit comments