Select to view content in your preferred language

Token Authentication Issue

409
1
06-12-2013 02:08 AM
AshishArora
Deactivated User
Hello

I am just trying to access the secure map services in a browser which are hosted on ArcGIS Server 10.1.

Using the following statement, i am able to generate the token

http://<Server:6080>/arcgis/tokens?request=getToken&username=usr&password=pass&expiration=60

I embedded the generated token using in  map service url as:

http://xxx.xxx.com/arcgis/rest/services/secVector/MapServer?&token=NktrSvfsIDf18KogdzYiqzltVCoJyU-ts....

this returned me the service metadata but when i clicked "View in ArcGIS Javascript", another browser window got opened and started asking for user name and password to access the service.

So when i already provided the token then why it is again asking for user name and password.
0 Kudos
1 Reply
ShaunWeston
Frequent Contributor
My guess is that the token is not being passed when you click view in Javascript. If you add the map service (with the token) into a javascript application does it show the layer?
0 Kudos