@@ -448,7 +448,7 @@ def _set_common_domain_cookie(self, internal_response, http_args, context):
448
448
satosa_logging (logger , logging .DEBUG , "Found existing common domain cookie {}" .format (common_domain_cookie ), context .state )
449
449
space_separated_b64_idp_string = unquote (common_domain_cookie .value )
450
450
b64_idp_list = space_separated_b64_idp_string .split ()
451
- idp_list = [ urlsafe_b64decode (b64_idp ).decode ('utf-8' ) for b64_idp in b64_idp_list ]
451
+ idp_list = [urlsafe_b64decode (b64_idp ).decode ('utf-8' ) for b64_idp in b64_idp_list ]
452
452
else :
453
453
satosa_logging (logger , logging .DEBUG , "No existing common domain cookie found" , context .state )
454
454
idp_list = []
@@ -459,15 +459,15 @@ def _set_common_domain_cookie(self, internal_response, http_args, context):
459
459
this_flow_idp = internal_response .to_dict ()['auth_info' ]['issuer' ]
460
460
461
461
# Remove all occurrences of the current IdP from the list of IdPs.
462
- idp_list = [ idp for idp in idp_list if idp != this_flow_idp ]
462
+ idp_list = [idp for idp in idp_list if idp != this_flow_idp ]
463
463
464
464
# Append the current IdP.
465
465
idp_list .append (this_flow_idp )
466
466
satosa_logging (logger , logging .DEBUG , "Added IdP {} to common domain cookie list of IdPs" .format (this_flow_idp ), context .state )
467
467
satosa_logging (logger , logging .DEBUG , "Common domain cookie list of IdPs is now {}" .format (idp_list ), context .state )
468
468
469
469
# Construct the cookie.
470
- b64_idp_list = [ urlsafe_b64encode (idp .encode ()).decode ("utf-8" ) for idp in idp_list ]
470
+ b64_idp_list = [urlsafe_b64encode (idp .encode ()).decode ("utf-8" ) for idp in idp_list ]
471
471
space_separated_b64_idp_string = " " .join (b64_idp_list )
472
472
url_encoded_space_separated_b64_idp_string = quote (space_separated_b64_idp_string )
473
473
0 commit comments