Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Strategy for authenticating to Shopify API using OmniAuth.
tag: v0.0.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
spec/omniauth/strategies
.gitignore
Gemfile
README.md
Rakefile
omniauth-shopify.gemspec

README.md

OmniAuth Shopify Strategy

Strategy for authenticating to Shopify API using OmniAuth.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-shopify'

Usage

First, you will need to register an application with Shopify and obtain an API key. Once you do that, you can use it like so:

use OmniAuth::Builder do
  provider :shopify, 'api_key', 'shared_secret'
end

Auth Hash Schema

The following information is provided back to you for this provider:

{
  uid: 'example.myshopify.com',
  info: {
    name: 'example.myshopify.com',
  },
  credentials: {
    token: 'thetoken' # can be used to auth to the API
  }
}

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.