PlugShopifyEmbeddedSwitch (plug_shopify_embedded_switch v0.1.0)
Switches auth between URL Params and JWT, designed for Shopify App Bridge. Add the plug to any pipeline where you would like to do both URL param and JWT auth.
pipeline :demo do
plug PlugShopifyEmbeddedSwitch
end
This plug will set three keys in the private object which you can use in follow up plugs.
conn.private[:shopify_url_config]
Shop Origin URLconn.private[:shopify_jwt_config]
JWT Objectconn.private[:shop_origin_type]
will return either:jwt
or:url
Link to this section Summary
Link to this section Functions
Link to this function
call(conn, _)
Specs
call(Plug.Conn.t(), any()) :: Plug.Conn.t()
Link to this function