def prep_flags(flags):

  """ Prepare an arguments object with flags for the auth flow. """

  if flags:
    setattr(flags, "logging_level", flags.logging)
    setattr(flags, "auth_host_name", "localhost")
    setattr(flags, "auth_host_port", [8000, 8085])
    setattr(flags, "noauth_local_webserver", False)
  return flags