Hello,
since 1 or 2 Weeks we are Facing a Problem with the Oauth2 Process/Installation Process our Shopify App.
While Testing the App local today, we can’t get the right Redirect Url from Shopify.
The Backend is written in Python with the following lines of basic Code.
SHOPIFY_API_VERSION = '2024-07'
SHOPIFY_STATE = binascii.b2a_hex(os.urandom(15)).decode("utf-8")
SHOPIFY_SCOPES = ['read_products', 'read_shipping', 'read_price_rules']
shopify.Session.setup(api_key=SHOPIFY_SECRET['api_key'],secret=SHOPIFY_SECRET['secret'])
shopify_session = shopify.Session(shop, SHOPIFY_API_VERSION)
auth_url = shopify_session.create_permission_url(SHOPIFY_SCOPES, SHOPIFY_REDIRECT_URL, SHOPIFY_STATE)
return flask.redirect(auth_url)
The return url is like this: https://TEST_SHOP.myshopify.com/admin/oauth/authorize?client_id=XXX&scope=read_products%2Cread_shipping%2Cread_price_rules&redirect_uri=http%3A%2F%2Flocalhost%3A9191%2Fshopify%2Fidealo-connect%2Foauth2callback&state=XXX
After the redirect we always get the following Screen:
The Code if the oauth2 process has not changed in a while, but the problem is new. Any ideas whats wrong?
Thanks in advance, Marco K. ![]()
