Secured map service requests on each zoom in/out "Please sign in to access the item on"

756
1
12-07-2016 09:12 PM
PitersonPaulgek
New Contributor III

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.

0 Kudos
1 Reply
PitersonPaulgek
New Contributor III

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.

0 Kudos