The old API accepts credentials as options[:basic_auth] where it contains a hash of {user: "username"} and {password: "a password"}. The new API accepts a flattened version options[:user] and options[:password], which assumes basic authentication. We should be able to support different authentication schemes in the future, so it would be good to namespace them, e.g. options[:basic_auth] vs options[:digest_auth].