gisplanners

Token Authentication Issue

Discussion created by gisplanners on Jun 12, 2013
Latest reply on Jun 18, 2013 by shaun_weston-eagle-co-nz-esridist
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-tsHT6ZZ55wpY.

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.

Outcomes