@@ -67,6 +67,7 @@ def get_activity_details(self, encrypted_request_token):
67
67
proto = protobuf .Protobuf ()
68
68
encrypted_data = proto .current_user (receipt )
69
69
encrypted_application_profile = proto .current_application (receipt )
70
+ encrypted_extra_data = proto .extra_data (receipt )
70
71
71
72
if not encrypted_data :
72
73
return ActivityDetails (receipt )
@@ -81,6 +82,12 @@ def get_activity_details(self, encrypted_request_token):
81
82
encrypted_application_profile .iv ,
82
83
encrypted_application_profile .cipher_text ,
83
84
)
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
84
91
85
92
user_profile_attribute_list = proto .attribute_list (decrypted_profile_data )
86
93
application_profile_attribute_list = proto .attribute_list (
@@ -91,6 +98,7 @@ def get_activity_details(self, encrypted_request_token):
91
98
receipt = receipt ,
92
99
decrypted_profile = user_profile_attribute_list ,
93
100
decrypted_application_profile = application_profile_attribute_list ,
101
+ decrypted_extra_data = decrypted_extra_data ,
94
102
)
95
103
96
104
def perform_aml_check (self , aml_profile ):
0 commit comments