class ActionMailbox::BaseController

def authenticate_by_password

def authenticate_by_password
  if password.present?
    http_basic_authenticate_or_request_with name: "actionmailbox", password: password, realm: "Action Mailbox"
  else
    raise ArgumentError, "Missing required ingress credentials"
  end
end