Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError at /shopify/finalize/ 'shopify_oauth_state_param' #43

Open
taporag opened this issue Sep 2, 2020 · 1 comment
Open

KeyError at /shopify/finalize/ 'shopify_oauth_state_param' #43

taporag opened this issue Sep 2, 2020 · 1 comment

Comments

@taporag
Copy link

taporag commented Sep 2, 2020

Hi! I am getting this error KeyError at /shopify/finalize/ 'shopify_oauth_state_param' while trying to load the app inside Shopify admin.

It seems the request.session not retaining inside the iframe. Would you like to share how can I make the session persist inside the iframe(inside the Shopify admin)

I've tried by commenting the middleware #'django.middleware.clickjacking.XFrameOptionsMiddleware',

To load the app inside Shopify admin I've wrtten (This is coppied from the Shopify auth lib):

<script type="text/javascript" src="https://cdn.shopify.com/s/assets/external/app.js"></script> <script type="text/javascript"> ShopifyApp.init({ apiKey: '{{ SHOPIFY_API_KEY }}', shopOrigin: 'https://{{ current_shop.domain }}' }); ShopifyApp.ready(function() { ShopifyApp.Bar.initialize({ title: '{{ SHOPIFY_APP_NAME }}', buttons: {} }); }); </script>

Any help would be appreciated!!!

Thank you!!

@sillycube
Copy link

I am having the same issue now. I try to save the session in my db but it's gone when it reaches authenticate. How did you resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants