Empty map when using token based authentication with javascript api

920
6
06-29-2012 04:49 AM
by Anonymous User
Not applicable
Original User: pragnesh.patel

hi all,
i am trying to use my 9.3.1 service in javascript api with token based authentication.
I am getting blank map.
i use proxy mentioned in this post

any idea what can be wrong?
below is my header
[ATTACH=CONFIG]15598[/ATTACH]

& response
[ATTACH=CONFIG]15599[/ATTACH]
0 Kudos
6 Replies
by Anonymous User
Not applicable
Original User: ciava.at

have you tried to go debug in proxy.ashx ?
0 Kudos
JeffPace
MVP Alum
did the break coincide with updating from 2.5/2.6 to something higher? if so there were changes to the security model.

DO you

dojo.require("esri.IdentityManager");

i.e, do you ever get the Login prompt?
0 Kudos
by Anonymous User
Not applicable
Original User: pragnesh.patel

have you tried to go debug in proxy.ashx ?


Yes i have debugged through proxy and it returns correct token.
0 Kudos
PragneshPatel
New Contributor III
did the break coincide with updating from 2.5/2.6 to something higher? if so there were changes to the security model.

DO you

dojo.require("esri.IdentityManager");

i.e, do you ever get the Login prompt?



No i have started fresh application with new 3.0
and it don't ask me any login prompt.
0 Kudos
PragneshPatel
New Contributor III
do i need crossdomain.xml?
0 Kudos
by Anonymous User
Not applicable
Original User: pragnesh.patel

It gives same error when i login to the rest services from browser
I my user is member of agsadmin group.
I am able to login to Rest Admin (http://<servername>/ArcGIS/rest/admin/) using the same login. but gives unauthorised access as attached screenshot when i try to login to services directory (http://<servername>/ArcGIS/rest/services)

[ATTACH=CONFIG]15648[/ATTACH]
0 Kudos