discolabs / django-shopify-auth

A package for adding Shopify authentication to a Django app.
MIT License
145 stars 54 forks source link

How to avoid redirects out of the Shopify Admin in embedded apps? #59

Closed slado122 closed 3 years ago

slado122 commented 3 years ago

So, when we finish the stage "Checking cookies", we get redirected to our application page NOT inside an iframe. Is there a way to not leave the Shopify Admin and be fully embedded?

# Shopify App Setup App URL: https://myapp.com/ Whitelisted Redirect URL(s): https://myapp.com/shopify/finalize/

# setttings.py LOGIN_URL = '/shopify/login/' LOGIN_REDIRECT_URL = '/'

shopify_auth.views are default.

stlk commented 3 years ago

I'm afraid the only way to avoid redirects out of the Shopify Admin is the token based cookieless auth. We already migrated one of our apps to this. I hope to write an article about it in following weeks.

shashitechno commented 1 year ago

@stlk any documentation on cookieless auth ?

stlk commented 1 year ago

@shashitechno yeah, https://github.com/discolabs/django-shopify-auth#embedded-vs-standalone-apps