File tree 2 files changed +14
-12
lines changed
2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,20 @@ class BadGateway(Response):
142
142
_status = "502 Bad Gateway"
143
143
144
144
145
+ class HttpParameters ():
146
+ """GET or POST signature parameters for Redirect or POST-SimpleSign bindings
147
+ because they are not contained in XML unlike the POST binding
148
+ """
149
+ signature = None
150
+ sigalg = None
151
+ # Relaystate and SAML message are stored elsewhere
152
+ def __init__ (self , dict ):
153
+ try :
154
+ self .signature = dict ["Signature" ][0 ]
155
+ self .sigalg = dict ["SigAlg" ][0 ]
156
+ except KeyError :
157
+ pass
158
+
145
159
def extract (environ , empty = False , err = False ):
146
160
"""Extracts strings in form data and returns a dict.
147
161
Original file line number Diff line number Diff line change @@ -1317,18 +1317,6 @@ 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
-
1332
1320
class StatusType_ (SamlBase ):
1333
1321
"""The urn:oasis:names:tc:SAML:2.0:protocol:StatusType element """
1334
1322
You can’t perform that action at this time.
0 commit comments