Shopify Embedded SDK with Python / Flask
Vasily Dernis
86

Hello,

Thanks for the write up. It saved me a ton of time and explained a lot.

Just in case any one is using ngrok instead of localhost and getting oauth permissions issues. When building the permission url, you need to call Flask’s url_for with the _scheme parameter. Without that, it kept returning http for me and guessing it has something to do with the ngrok proxy server to localhost. Anyway, just updated the code to this and it worked:

url_for("shopify_bp.finalize", _external=True,_scheme='https')
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.