Sha256: dcd899950086fc86a06b12353c8612bab30e0990f3a054efd906a3ddfb1d3799
Contents?: true
Size: 469 Bytes
Versions: 11
Compression:
Stored size: 469 Bytes
Contents
require_dependency "integration_pal/application_controller" module IntegrationPal class ApiController < ApplicationController skip_before_action :authenticate! skip_before_action :verify_authenticity_token before_action :authenticate_api private def authenticate_api @worker = Worker.find_by_access_id(ApiAuth.access_id(request)) head(:unauthorized) unless @worker && ApiAuth.authentic?(request, @worker.secret_key) end end end
Version data entries
11 entries across 11 versions & 1 rubygems