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`
}
}
});
![RenatZamaletdinov_0-1706784978042.png RenatZamaletdinov_0-1706784978042.png](https://community.esri.com/t5/image/serverpage/image-id/93422i9E7A4288DADFC5B3/image-dimensions/705x222?v=v2)
If I add that token manually to the URL there are no issues
![RenatZamaletdinov_1-1706785144606.png RenatZamaletdinov_1-1706785144606.png](https://community.esri.com/t5/image/serverpage/image-id/93423i2A4689084BABE93B/image-dimensions/762x297?v=v2)
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"