Module: Linger::Authentication
Instance Method Summary collapse
Instance Method Details
#authenticate_connection! ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/linger/authentication.rb', line 4 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 |