| 
6 | 6 | from callback.models import Auth  | 
7 | 7 | from django.shortcuts import get_object_or_404  | 
8 | 8 | from bigcommerce.api import BigcommerceApi  | 
 | 9 | +import datetime  | 
 | 10 | + | 
9 | 11 | 
 
  | 
10 | 12 | 
 
  | 
11 | 13 | def client_secret():  | 
12 | 14 |  return config('appClientSecret')  | 
13 | 15 | 
 
  | 
14 | 16 | def authKey(request):  | 
15 |  | - signed_payload = request.GET.get('signed_payload')  | 
 | 17 | + signed_payload = request.get('signed_payload')  | 
16 | 18 |  a = BigcommerceApi.oauth_verify_payload(signed_payload, client_secret())  | 
17 | 19 |  store_hash = a['store_hash']  | 
18 | 20 |  obj = get_object_or_404(Auth, storehash=store_hash)  | 
 | 
0 commit comments