I have an authenticated app built on Rails, which is able to get information in the admin backend and display it. However, I want to be able to get this information on the frontend using an application proxy. When I try to access that information, I get redirected to myshop.myshopify.com/password. I think this page is basically a 404 page. My rails routes are setup correctly, however, because if I take out all API calls from my controller, that page will accurately display HTML from my view.
Thanks for any tips. I'm using the shopify_app gem for authentication and have my app uploaded on Heroku.
App Proxy calls are just that. A Proxy. Shopify gathers up your POST or GET information and passes it to your App, providing authentication in the headers that the call is coming from Shopify. You are responsible for decoding the payload, and responding.
So the first step you have to make it to get a Proxy request from Shopify to your endpoint. Once you acheive that minor glory, you can authenticate it. After that, the sky is the limit and you can carry on.
Note that Michael Hewson is currently placing a bunch of Pull Requests on the Shopify App gem so that you can benefit from all the mess involved being nicely packaged up like webhooks.
So it matters not that you are on Heroku, or using the Shopify App gem, it matters more that you setup things correctly in the first place. not hitting your endpoint properly means you screwed up something in the setup in your App dashboard settings perhaps.