Session token authentication for Python app.

Session token authentication for Python app.

Stix
Shopify Partner
2 0 3

Since Shopify has forced Session Token Authentication now, can we possibly get some more sample code besides Ruby/Node? There must be thousands of apps written in other languages, and porting what's available is challenging since there are many pre-build libraries in use.

 

There are other posts here about this topic that remain unanswered. Where is Shopify support? Not sure how you can release and force a migration without providing ample resources. The Python API flat out declines to address this (https://github.com/Shopify/shopify_python_api/issues/415).

 

The level of frustration among developers in noted all over these forums. 

Replies 3 (3)

dogowner
Shopify Partner
58 5 8

Did you ever get anything to work?  I was thinking of just trying to translate the server component of the shopify-app-node example into Python.

 

After a lot of difficult reading and worse video watching I think I need an app extension that points to a single page of an embedded app.  I want to have a store employee select multiple orders in admin and then goto a page to show a custom picking list provided by my backend based off of syncing with graphql with batch jobs on my server.

 

Seems like Shopify has some pretty confusing transitions going on.  The backend apis are like split between REST and GraphQL.  The app api has like 4 different architectures and mixed language support.  Its no wonder they have a hard time supporting more than 2 languages.

Stix
Shopify Partner
2 0 3

We ended up tossing an JWT token back and forth in the query string.

quazirfan
Shopify Partner
6 0 0

I think that is the correct approach based on the documentation available for manual token exchange.

 

Source: https://shopify.dev/docs/apps/auth/get-access-tokens/token-exchange/getting-started#step-2-get-an-ac...