module Devise::Models::HttpAuthenticatable::ClassMethods

def authenticate_with_http(username, password)

Authenticate an user using http.
def authenticate_with_http(username, password)
  authenticate(authentication_keys.first => username, :password => password)
end