|
|
|
|
@ -33,14 +33,12 @@ def app_store_webhook(request): |
|
|
|
|
fulljson = json.loads(data) |
|
|
|
|
signedPayload = fulljson['signedPayload'] |
|
|
|
|
|
|
|
|
|
# KEY_FILE = settings.ASS_KEY_FILE |
|
|
|
|
# |
|
|
|
|
# with open(KEY_FILE,'r') as key_file: |
|
|
|
|
# key = ''.join(key_file.readlines()) |
|
|
|
|
|
|
|
|
|
KEY_FILE = settings.ASS_KEY_FILE |
|
|
|
|
|
|
|
|
|
with open(KEY_FILE,'r') as key_file: |
|
|
|
|
key = ''.join(key_file.readlines()) |
|
|
|
|
|
|
|
|
|
decodedPayload = _decode_jws(token, algorithms=algorithms) |
|
|
|
|
|
|
|
|
|
decodedPayload = _decode_jws(signedPayload, algorithms=algorithms) |
|
|
|
|
|
|
|
|
|
# decodedPayload = jwt.decode(signedPayload, key, algorithms=['ES256']) |
|
|
|
|
|
|
|
|
|
|