I’m currently building a marketplace & the e-commerce third party I’m using is Shopify. This is purely for an MVP purpose, & I know I don’t want to keep this solution forever. Here comes Auth0. I would love to use Auth0 right now for the user management, login, signups etc.
The thing is, Shopify needs customers to be created on its side as well in order to link it to orders. Do you know how to achieve this? Should I do it manually? Or do you have a way to connect to Shopify to replace their authentication/customer feature?
(I don’t have Shopify Plus btw, so I can’t use their “multipass” feature).
More specifically to your scenario, you may prefer to keep Auth0 as your IdP in which case once a user is created/signed up in Auth0, you can configure a Post User Registration Action where you let Shopify know a user has been created/signed up and send the user_id across as a link and have Shopify create the user at their end with the Auth0 Id sent for mapping/linking purposes, Shopify can then use that account for orders etc.
Indeed, I would like to have Auth0 being my main IdP. However I wonder how it would work with the Shopify API:
The customers on Shopify are associated to orders for example, and the way to retrieve the orders for shopify is to query a customer, then their order on the GraphQL API.
As you can see, the parameter here is based on the customer token we retrieve from the authentication. So how would it work if we had Auth0 taking care of the authentication instead of shopify?