Sha256: f738977070f5450dc6412570c35ea11a73ca1f5cba82e31cef67f14ec013e2c6
Contents?: true
Size: 397 Bytes
Versions: 39
Compression:
Stored size: 397 Bytes
Contents
module Concerns module Authenticated extend ActiveSupport::Concern include Praxis::Callbacks included do before :action do |controller| auth_data = controller.request.headers['Authorization'] if auth_data && auth_data !~ /secret/ Praxis::Responses::Unauthorized.new(body: 'Authentication info is invalid') end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems