Sha256: 1e01bc6dd5881324c06aa59c0b81c70079c9c2e7fa2dd77fe7196bc46efc1259
Contents?: true
Size: 402 Bytes
Versions: 23
Compression:
Stored size: 402 Bytes
Contents
# frozen_string_literal: true module Concerns module Authenticated extend ActiveSupport::Concern include Praxis::Callbacks included do before :action do |controller| auth_data = controller.request.headers['Authorization'] Praxis::Responses::Unauthorized.new(body: 'Authentication info is invalid') if auth_data && auth_data !~ /secret/ end end end end
Version data entries
23 entries across 23 versions & 1 rubygems
Version | Path |
---|---|
praxis-2.0.pre.21 | spec/spec_app/app/concerns/authenticated.rb |
praxis-2.0.pre.20 | spec/spec_app/app/concerns/authenticated.rb |
praxis-2.0.pre.19 | spec/spec_app/app/concerns/authenticated.rb |