0

It's my understanding that only CARTO maps can be password-protected, not datasets. I'm currently using the datasets like so:

const source = new carto.source.Dataset(dataset);
const style = new carto.style.CartoCSS(cartoLayerCss);
const layer = new carto.layer.Layer(source, style, {
  ...
});

this.client
      .addLayer(layer)
      .then(() => {
         ...
}

Am I forced to

  1. make the dataset private
  2. create a map out of it
  3. set a password on that map and
  4. bind the pw-protected map via vis.json?
1

CARTO Builder and Editor maps can be shared with password. CARTO datasets "can be shared" using tokens with the Auth API (vis.json does not work with CARTO.js v4).

5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.