# Shopify

Shopify uses OAuth 2 for authentication.

To use this backend, you must install the package `shopify` from the Github project. Currently supports v2+

- Register a new application at Shopify Partners, and

- Set the Auth Type to OAuth2 in the application settings

- Set the Application URL to http://[your domain]/login/shopify/

- fill `API Key` and `Shared Secret` values in your django settings:

      SOCIAL_AUTH_SHOPIFY_KEY   = ''
      SOCIAL_AUTH_SHOPIFY_SECRET = ''

- fill the scope permissions that you require into the settings Shopify API:

      SOCIAL_AUTH_SHOPIFY_SCOPE = ['write_script_tags',
                                   'read_orders',
                                   'write_customers',
                                   'read_products']