module Devise::Controllers::Helpers

def authenticate(scope)

but does not redirect in case of failures.
Attempts to authenticate the given scope by running authentication hooks,
def authenticate(scope)
  warden.authenticate(:scope => scope)
end