decode attempt

main
Laurent 2 years ago
parent 621d04cfb9
commit aa5691aed9
  1. 15
      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))

Loading…
Cancel
Save