Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Python app with Shopify Managed Installation

Python app with Shopify Managed Installation

spc-ss
Shopify Partner
2 0 2

Trying to set up a Python based service to be a Shopify App. I found good instructions for doing OAUTH installation, but then discovered "Shopify managed installation" (https://shopify.dev/docs/apps/auth/installation) . It seems that the Shopify CLI is language agnostic, even if it doesn't have a python example. What routes and functionality would I need to implement to use this functionality?

Replies 2 (2)

Dugani
Shopify Partner
12 0 5

Did you find any answer to your question?

spc-ss
Shopify Partner
2 0 2

I'm still trying to build my solution, but it's essentially what is described in the documentation on Token Exchange. There is no installation endpoint; every request made to the iframe in an embedded app includes the information required for Shopify App Bridge to make session tokens in the frontend, which you then include in every call to your backend to exchange them for access tokens. It's not unreasonable to make a call when the iframe is first loaded specifically to give your backend a chance to store an offline access token for the shop.