Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working with the ArcGIS JavaScript API for my application. My app users are stored in a table published in a map service. Whenever a user wants to connect to the app, he needs to provide a username and password. How can I retrieve data from my table and compare them to those entered by the user? I've found somewhere that I need to use JQuery but i don't know how. If you could help, thanks in advance:)

share|improve this question
are you using arcgis server? – Craig Apr 12 '13 at 13:56
yeah ,i'am using arcgis server 10.0 – sarah Apr 13 '13 at 12:02
Why don't you set up user names and passwords through arcgis server for authentication/authorization. Then you won't need any jQuery.. – Craig Apr 14 '13 at 14:17
Are you storing passwords as something other than a Salted Hash? Are you storing the username and password in plain text in this table? – MLowry Jun 11 '13 at 17:17

You can just use a query task from the javascript api to query the map service to get the information so you can then compare the usernames and password and you will not have to use jQuery. There are some security implication associated with this of course.

share|improve this answer
thank you for responding, i want just to know what are these security implications and how to manage security of the whole application.i know that i can secure my data by working with secure services, but how can i secure and restrict access to the whole application ( with user privileges etc) ; i am a beginner in programming and need some help :) – sarah Apr 13 '13 at 12:17
@sarah according to the question please go through following link contains how to implement security to AGS (…) Let us know if you have any question..thanks – Sunil May 13 '13 at 5:24
thank you very much, it's helpful :) – sarah May 13 '13 at 20:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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