From fc4775830d9f9bb580277c9030aeada67df6b5d7 Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 15 Jan 2024 14:59:50 +0100 Subject: [PATCH] test --- subscriptions/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/subscriptions/views.py b/subscriptions/views.py index c2eda34..5ae10f5 100644 --- a/subscriptions/views.py +++ b/subscriptions/views.py @@ -26,18 +26,18 @@ def app_store_webhook(request): signedPayload = fulljson['signedPayload'] - KEY_FILE = settings.ASS_KEY_FILE + #KEY_FILE = settings.ASS_KEY_FILE - with open(KEY_FILE,'r') as key_file: - key = ''.join(key_file.readlines()) + #with open(KEY_FILE,'r') as key_file: + # key = ''.join(key_file.readlines()) - decodedPayload = jwt.decode(signedPayload, key, algorithms=['ES256']) + #decodedPayload = jwt.decode(signedPayload, key, algorithms=['ES256']) #print('hell yeah!' + str(key)) #logger.debug('test getLogger' + str(key)) notification = ASSNotification( - content=decodedPayload, + content=signedPayload, ) notification.save()