Hi,
We use a secure map service by token generated and saved with *.js file.
We call in constructor "map_service_URL +token" and add to map (no popup)
The layer is invisible first time.
On show layer and on each zoom in/out it is a popup "Please sign in to access the item on" and "Invalid Token" in console.
And even after press "Cancel" in the popup - we can see the layer on the map.
What is a reason for that?
Any help please.
We noticed that if open the URL+token in browser
it opens the page of ArcGIS Server service directory,
but
if on the page we press on link "ArcGIS Online map viewer"
it shows a user/password dialog.
Please help.