From aa5691aed9c368cf3cbbb4e18ac46ec63c7ff98b Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 15 Jan 2024 14:49:12 +0100 Subject: [PATCH] decode attempt --- subscriptions/views.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/subscriptions/views.py b/subscriptions/views.py index 4adce86..457ebbd 100644 --- a/subscriptions/views.py +++ b/subscriptions/views.py @@ -31,15 +31,12 @@ def app_store_webhook(request): with open(KEY_FILE,'r') as key_file: key = ''.join(key_file.readlines()) - jwt_options = { - 'verify_signature': True, - 'verify_exp': True, - 'verify_nbf': False, - 'verify_iat': True, - 'verify_aud': False - } - - decodedPayload = jwt.decode(signedPayload, key, algorithms=['ES256'], options=jwt_options) + key = 'MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgOzAYvVe2plgEO65I + rzpfDiorOSshVWOZyYyYxKukiMOgCgYIKoZIzj0DAQehRANCAATr5XT5byC/B3CD + 3k5HZAVkcgnIpGIhLn/zcSoINnHpNoykKfNRcPAViyF5oPapP6dzdhzfXpPAschh + eKfajgao' + + decodedPayload = jwt.decode(signedPayload, key, algorithms=['ES256']) #print('hell yeah!' + str(key)) #logger.debug('test getLogger' + str(key))