Module: Zas::Filters::StandardAuth

Defined in:
lib/zas/filters/standard_auth.rb

Overview

Filter that converts from a Hash to an Array.

Class Method Summary collapse

Class Method Details

.authenticate(credentials) ⇒ Object

Filter the authentication credentials by converting from a Hash to an array.

credentials - The credentials Hash

Returns a pair of [username, password]



12
13
14
# File 'lib/zas/filters/standard_auth.rb', line 12

def authenticate(credentials)
  [credentials['username'], credentials['password']]
end