class Devise::Strategies::Authenticatable

def http_auth_hash

Extract a hash with attributes:values from the http params.
def http_auth_hash
  keys = [authentication_keys.first, :password]
  Hash[*keys.zip(decode_credentials).flatten]
end