|
|
|
@ -26,6 +26,11 @@ def app_store_webhook(request): |
|
|
|
signedPayload = fulljson['signedPayload'] |
|
|
|
signedPayload = fulljson['signedPayload'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
content = signedPayload.split('.')[1] |
|
|
|
|
|
|
|
jws_payload = base64.b64decode(content) |
|
|
|
|
|
|
|
data = json.loads(jws_payload.decode()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#KEY_FILE = settings.ASS_KEY_FILE |
|
|
|
#KEY_FILE = settings.ASS_KEY_FILE |
|
|
|
|
|
|
|
|
|
|
|
#with open(KEY_FILE,'r') as key_file: |
|
|
|
#with open(KEY_FILE,'r') as key_file: |
|
|
|
@ -37,7 +42,7 @@ def app_store_webhook(request): |
|
|
|
#logger.debug('test getLogger' + str(key)) |
|
|
|
#logger.debug('test getLogger' + str(key)) |
|
|
|
|
|
|
|
|
|
|
|
notification = ASSNotification( |
|
|
|
notification = ASSNotification( |
|
|
|
content=signedPayload, |
|
|
|
content=jws_payload, |
|
|
|
) |
|
|
|
) |
|
|
|
notification.save() |
|
|
|
notification.save() |
|
|
|
|
|
|
|
|
|
|
|
|