repositorypackage
0.1.0
Repository: https://github.com/ttyfky/go-shopify-oauth.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
go-shopify-oauth
OAuth Server for Shopify App.
How OAuth of Shopify App works
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
Example
Runnable server example is in example.
Prerequisite
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
Installation Steps of Shopify App
- 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