I am building a web map application using the ArcGIS API for JavaScript. The application is using the GeoCoder widget from ESRI, but I need to link it to an outside, secured resource. I am able to use the outside server to create a token from my credentials, but I don't know how to append the token information to the GeoCoder widget.
I am looking for the correct way to add the token information into my geocoding requests. I have been scouring the forums here and on GeoNet, and the information I find points mostly to using either the IdentifyManager or using a proxy. The outside server lets me create a token that is valid for 1 year, so I would prefer to do that right now and set up the IdentifyManager or proxy later.
My site is HTML/JavaScript based on an IIS (6.1) server, and I was not planning on making it an ASP site.
I would prefer if I just take my credentials and create a token to quickly insert into my application rather than taking the time to set up the other methods.
Is there a way to take the web-generated token and pass it into the GeoCoder widget?
No comments:
Post a Comment