Python app with Shopify Managed Installation

Python app with Shopify Managed Installation

spc-ss
Shopify Partner
2 0 1

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 4

Did you find any answer to your question?

spc-ss
Shopify Partner
2 0 1

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.