ueberauth_shopify v0.1.2 Ueberauth.Strategy.Shopify.OAuth

An implementation of OAuth2 for Shopify.

To add your client_id and client_secret include these values in your configuration.

config :ueberauth, Ueberauth.Strategy.Shopify.OAuth,
  client_id: System.get_env("SHOPIFY_API_KEY"),
  client_secret: System.get_env("SHOPIFY_SECRET")

The {shop} value for all OAuth interaction with Shopify will be set dynamically following initial instigation of the OAuth key exchange.

Summary

Functions

Provides the authorize url for the request phase of Ueberauth. No need to call this usually

Construct a client for requests to Shopify using configuration from Application.get_env/2

Functions

authorize_url(client, params)
authorize_url!(params \\ [], opts \\ [])

Provides the authorize url for the request phase of Ueberauth. No need to call this usually.

get_token(client, params, headers)
get_token!(params \\ [], opts \\ [])
new_client(opts \\ [])

Construct a client for requests to Shopify using configuration from Application.get_env/2

Ueberauth.Strategy.Shopify.OAuth.client(redirect_uri: "http://localhost:4000/auth/shopify/callback")

This will be setup automatically for you in Ueberauth.Strategy.Shopify.