@@ -67,6 +67,7 @@ def get_activity_details(self, encrypted_request_token):
6767 proto = protobuf .Protobuf ()
6868 encrypted_data = proto .current_user (receipt )
6969 encrypted_application_profile = proto .current_application (receipt )
70+ encrypted_extra_data = proto .extra_data (receipt )
7071
7172 if not encrypted_data :
7273 return ActivityDetails (receipt )
@@ -81,6 +82,12 @@ def get_activity_details(self, encrypted_request_token):
8182 encrypted_application_profile .iv ,
8283 encrypted_application_profile .cipher_text ,
8384 )
85+ if encrypted_extra_data :
86+ decrypted_extra_data = self .__crypto .decipher (
87+ unwrapped_key , encrypted_extra_data .iv , encrypted_extra_data .cipher_text
88+ )
89+ else :
90+ decrypted_extra_data = None
8491
8592 user_profile_attribute_list = proto .attribute_list (decrypted_profile_data )
8693 application_profile_attribute_list = proto .attribute_list (
@@ -91,6 +98,7 @@ def get_activity_details(self, encrypted_request_token):
9198 receipt = receipt ,
9299 decrypted_profile = user_profile_attribute_list ,
93100 decrypted_application_profile = application_profile_attribute_list ,
101+ decrypted_extra_data = decrypted_extra_data ,
94102 )
95103
96104 def perform_aml_check (self , aml_profile ):
0 commit comments