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:)

  • 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
  • 1
    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.

| 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
  • 1
    @sarah according to the question please go through following link contains how to implement security to AGS (help.arcgis.com/en/arcgisserver/10.0/help/…) Let us know if you have any question..thanks – Sunil May 13 '13 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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