@@ -588,10 +588,10 @@ def srv2typ(service):
588
588
else :
589
589
return typ
590
590
591
- def _parse_request (self , xmlstr , request_cls , service , binding ):
591
+ def _parse_request (self , enc_request , request_cls , service , binding ):
592
592
"""Parse a Request
593
593
594
- :param xmlstr : The request in its transport format
594
+ :param enc_request : The request in its transport format
595
595
:param request_cls: The type of requests I expect
596
596
:param service:
597
597
:param binding: Which binding that was used to transport the message
@@ -625,16 +625,15 @@ def _parse_request(self, xmlstr, request_cls, service, binding):
625
625
self .config .attribute_converters ,
626
626
timeslack = timeslack )
627
627
628
- origdoc = xmlstr
629
- xmlstr = self .unravel (xmlstr , binding , request_cls .msgtype )
628
+ xmlstr = self .unravel (enc_request , binding , request_cls .msgtype )
630
629
must = self .config .getattr ("want_authn_requests_signed" , "idp" )
631
630
only_valid_cert = self .config .getattr (
632
631
"want_authn_requests_only_with_valid_cert" , "idp" )
633
632
if only_valid_cert is None :
634
633
only_valid_cert = False
635
634
if only_valid_cert :
636
635
must = True
637
- _request = _request .loads (xmlstr , binding , origdoc = origdoc , must = must ,
636
+ _request = _request .loads (xmlstr , binding , origdoc = enc_request , must = must ,
638
637
only_valid_cert = only_valid_cert )
639
638
640
639
_log_debug ("Loaded request" )
0 commit comments