skip to Main Content

Memcached – ruby on rails api, how to authenticate user?

some controller: class Api::V1::AbilitiesController < API::V1::BaseController before_action :authenticate_api_v1_user! def index @resources = User.first.roles.map{|role| role.grants}.flatten! render json: @resources.group_by{|x| x.action} end end gemfile: source 'https://rubygems.org' ## Rails - Lock project at 4.2.x gem 'rails', '4.2.6' ## Database and ActiveRecord related gem 'pg'…

VIEW QUESTION

Verify Shopify webhook

I believe that to have a Shopify webhook integrate with a Rails app, the Rails app needs to disable the default verify_authenticity_token method, and implement its own authentication using the X_SHOPIFY_HMAC_SHA256 header. The Shopify docs say to just use request.body.read.…

VIEW QUESTION

How to use webhooks with shopify_app gem?

for the last hours I've been trying to add a webhook to my Shopify app using the official shopify_app gem. So I ran rails g shopify_app:add_webhook -t products/update -a https://example.com/webhooks/products_update and saw every file getting generated as expected and checking…

VIEW QUESTION
Back To Top
Search