Select to view content in your preferred language

Why map service asks for user/password?

918
4
12-12-2016 11:39 AM
PitersonPaulgek
New Contributor III

Hi,

We defined some map service as private in ArcGIS Server Manager.

We generated a token for one year.

We use "map_service_URL +token" and put to a browser.

It shows the info about the map service.

When we try to "View in ArcGIS Online map viewer " - it asks user/password

Why? What is wrong in the steps to use secure map service?

0 Kudos
4 Replies
EvelynHernandez
Regular Contributor

The token allows u to bypass the IdentityManager in some way (by ajax u can do it but u need to provide the user and pass for getting the token).

If u use arcgis online to visualize the layers it will ask u for the user and pass cuz they are secured services.

Every secured service u need to log in with ur credentials. Or using the bypass that i told u (but it will work in apps that u want to develop).

0 Kudos
PitersonPaulgek
New Contributor III

Thank you Evelyn,

The same in the web app we developing. It asks for user/password every zoom in/out. But shows data even we press cancel on user/password request.

Is it expected behavior?

0 Kudos
EvelynHernandez
Regular Contributor

Actually if u are passing the token for every layer u added it doesnt have to ask u for password for each action u do on the map.

Make sure u are doing it well and the token works for every service u have.

0 Kudos
PitersonPaulgek
New Contributor III

It does not work even for one!

0 Kudos