Example #1
0
 def pre_processing(self, message, **kwargs):
     _confirmation = message.assertion.subject.subject_confirmation
     if "localhost" in self.conv.entity_id:
         addr = "127.0.0.1"
     else:
         addr = ip_addresses()[0]
     _confirmation[0].subject_confirmation_data.address = addr
     return message
Example #2
0
 def pre_processing(self, message, **kwargs):
     _confirmation = message.assertion.subject.subject_confirmation
     if "localhost" in self.conv.entity_id:
         addr = "127.0.0.1"
     else:
         addr = ip_addresses()[0]
     _confirmation[0].subject_confirmation_data.address = addr
     return message
Example #3
0
 def pre_processing(self, message, **kwargs):
     _confirmation = message.assertion.subject.subject_confirmation
     sc = copy.copy(_confirmation[0])
     if "localhost" in self.conv.entity_id:
         addr = "127.0.0.1"
     else:
         addr = ip_addresses()[0]
     sc.subject_confirmation_data.address = addr
     _confirmation.append(sc)
     return message
Example #4
0
 def pre_processing(self, message, **kwargs):
     _confirmation = message.assertion.subject.subject_confirmation
     sc = copy.copy(_confirmation[0])
     if "localhost" in self.conv.entity_id:
         addr = "127.0.0.1"
     else:
         addr = ip_addresses()[0]
     sc.subject_confirmation_data.address = addr
     _confirmation.append(sc)
     return message