I like to use the ArcGIS.com to create a map with operational layers on top of a baselayer. I would like to have the Content and Map as private but to show the map in an application built with JavaScript API. I tried using the new IdentityManager to make the application turn up a login dialog. It does, but I get: "Invalid username/password. Please try again."

enter image description here

I'm a newbie on ArcGIS.com and JS so might have mixed up something, does anyone know if it's possible to access maps that are not publicly shared? There is no problem to access the map using createmap as long as the map is share to everyone.

enter image description here

1 Answer 1


The identity manager needs to do a POST to login to access your webmap. Since you're hitting arcgis.com, this is a cross domain request so you need to do this via a proxy. Have you set up a proxy for your app?

Looking at the docs, this isn't clear. We'll update our documentation to say you need to use a proxy if you want to use a private webmap in an app you host yourself (if you haven't guessed, I work on the JS API team).

  • Downvoted and no comment? Sep 30, 2011 at 0:18
  • This seems like a perfectly reasonable answer to me.... Sep 30, 2011 at 1:40
  • 1
    Oh well, this is the Internet... Sep 30, 2011 at 3:37
  • @Derek-Swingley I got the ASP.NET proxy up and running. But it would be great if the implementation would be able to get new tokens when needed. Oct 4, 2011 at 6:44
  • @MathiasWestin glad to hear you got it working. The Identity Manager should be getting new tokens as needed- once your app tries to hit a resource with an expired token, the identity manager should kick in and get a new, valid token. Oct 4, 2011 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.