Hi there!
I'm using IdentityManager to access secured resources (using ArcGIS tokens). There were no issues while I was using portal items like this:
const webMap = new WebMap({
portalItem: {
id: 'some-portal-id'
}
});
But recently I tried to add basemaps and the requests were ending up with 401:
const webMap = new WebMap({
basemap: {
style: {
language: 'nl',
id: 'arcgis/dark-gray',
serviceUrl: `https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/styles`
}
}
});
If I add that token manually to the URL there are no issues
Is there a way to specify a token when creating a basemap instance? Or make it use IdentityManager anyhow?
The package I'm using is "@arcgis/core": "^4.28.10"