I would like to start using the Directions Widget in my viewer again. At this time I can select a start and end point, but then I'm prompted for a username/password. That's not a problem for me, as I have an account, but the Viewer I have developed is used primarily for emergency response, so not all users will have a username/password nor will they really have time to create one on the fly when directions would be needed. My questions is, is there anyway to add something akin to a token to whatever the default service is that used to generate the directions?
Thank you
Ken,
sure you can use a proxy for this. The proxy at Esri/resource-proxy · GitHub allows for you to setup the user name and password that will be used and even setting a limit so that you do not go over your credit quota
Robert
We have experienced the same issue for one of our apps. Here is what we did to resolve the issue.
<serverUrl url="http://route.arcgis.com"
clientId="the_app_id"
clientSecret="the_app_secret"
matchAll="true"/>
<serverUrl url="http://traffic.arcgis.com"
clientId="the_app_id"
clientSecret="the_app_secret"
matchAll="true"/>
Hope it helps. Good luck.
Jason Zou
Jason,
I think you may want to delete your post as you are providing code for the JavaScript API and the OP was asking about ArcGIS Viewer for Flex (based on the space this question is in).