Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
How to authenticate a Shopify app using OAuth2
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
vendor
.gitignore
Gemfile
Gemfile.lock
README.markdown
Rakefile
config.ru

README.markdown

Shopify OAuth2 Example

This is an example of how to use OAuth2 authentication in a Shopify app.

Instructions

First create a new Shopify app from your Shopify Partner dashboard, and copy the api key and shared secret.

Then run the following commands in a terminal:

$ git clone git://github.com/travishaynes/shopify-oauth2-example.git
$ cd shopify-oauth2-example
$ bundle
$ rake db:migrate
$ export SHOPIFY_API_KEY=[paste your app's shopify api key here]
$ export SHOPIFY_SHARED_SECRET=[paste your app's shared secret here]
$ rails s

Then point your browser to localhost:3000, and sign in with a test shop.

Something went wrong with that request. Please try again.