Sha256: 04267ec31406ca566bec9b2dcc4096dce00271901c795beb0e14910c616c99d0

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

module Linger::Authentication
  extend ActiveSupport::Concern

  def authenticate_connection!
    identifier_exists = false
    Linger.instrument :meta, message: "Verifing #{connection.connection_identifier}" do
      identifier_exists = Linger.redis.exists?(connection.connection_identifier)
    end
    throw :forbidden unless identifier_exists
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
linger-0.1.0 lib/linger/authentication.rb