Description
What doesn't work
We used to be able to do the Shopify OAuth app installation by entering the URL in the browser: https://<app_domain>/shopify/auth?shop=<store_name>
which should then directs us to a screen to authorize and complete the installation.
But this time when I was installing the st pricing engine app, it directs me to a screen below
What works
Instead, to install it, we need to use the installation link generated by Shopify for the app while the app url needs to point to the /shopify/auth
route
The Shopify installation link will first direct user to a screen to select which store to install the app to, after selecting the store, the user will be directed to following installation screen to complete the installation.
But after the installation, I need to change the App URL to point to /health
instead so that when the app is being loaded from the store. It returns a happy state.
It feels like we can modify the init oauth router to detect
spylib/spylib/oauth/fastapi.py
Lines 32 to 44 in b8f67ba
- if it is a OAuth process then initiate the OAuth process
- if the app has been installed and being loaded from the Shopify admin, then just do something different like returning the health screen. Such requests have
?embedded=1
in the query