OAuth Server for Shopify App.
How to authenticate with OAuth for Shopify App is described in here.
In Short, OAuth client needs to provide two endpoints:
-
Endpoint to provide App's detail
- Provide requesting scope of App for authorization with a shop
-
Endpoint to handle redirect after authorization
- Receive AuthZ code so that requesting access token
Runnable server example is in example.
Following env var is required to run the example.
- APP_NAME
- Application's name
- API_KEY
- API key of Shopify App
- API_SECRET
- API Secret of Shopify App
- SCOPE
- OAuth Scope of Shopify App
- GRANT_OPTION
- (Optional) Access mode. Default is Offline
- SERVICE_URL
- URL of the service
- Create App in Shopify Partner dashboard
- Get
API key
andAPI Secret key
from App Setup page and set them in env var - Set env var of Scopes that an App needs
- Set env var of host name where your service will run
- Run the service
- Go to
Test on development store
in App page of Shopify Partner dashboard - Select your test store and proceed installation