File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -408,12 +408,16 @@ def _verify(self):
408
408
else :
409
409
raise RequestVersionTooHigh ()
410
410
411
+ destination = self .response .destination
411
412
if self .asynchop :
413
+ # Destination must be present
412
414
if (
413
- self . response . destination
414
- and self . response . destination not in self .return_addrs
415
+ not destination
416
+ or destination not in self .return_addrs
415
417
):
416
- logger .error ("%s not in %s" , self .response .destination , self .return_addrs )
418
+ logger .error (
419
+ f"{ destination } not in { self .return_addrs } "
420
+ )
417
421
return None
418
422
419
423
valid = self .issue_instant_ok () and self .status_ok ()
@@ -1116,7 +1120,7 @@ def session_info(self):
1116
1120
raise StatusInvalidAuthnResponseStatement (
1117
1121
"The Authn Response Statement is not valid"
1118
1122
)
1119
-
1123
+
1120
1124
def __str__ (self ):
1121
1125
return self .xmlstr
1122
1126
You can’t perform that action at this time.
0 commit comments