First, thanks to Peter Gamberg on the State and Local Government Team for helping me by updating the steps in the workflow. It has been several years since I wrote this and I knew the workflow had changed based on updates made to the Esri Developers site but my priorities have been elsewhere.
As you build more and more ArcGIS Online web applications for your organization, you'll likely need to include one of Esri's Premium Services, such as Live Traffic, especially if your organization is a State Department of Transportation. While Live Traffic does not cost credits, it does require a named user to access the premium content. You, of course, know this because when you launched the application, which you tirelessly spent all that time configuring, you hit the snag where the app requires the user to sign in. So how are you supposed to deploy a public app with traffic cameras, weather, and live traffic if your app requires a login?
You could provide an access token and embed it in your application, but this requires custom development, and you must host the application yourself. Also, this method creates a security risk because your token could be hijacked and used without you ever knowing.
A more straightforward solution is to create a proxy service configuration for the premium service of your choice. A proxy service allows you to encode and manage your credentials inside a service URL. Additionally, proxy services support rate-limiting. Proxy services allow you to make the Esri World Geocoding Service available to an end-user for batch Geocoding or other operations which do consume credits. However, it protects you because you can specify the rate at which addresses can be batch geocoded, preventing runaway usage while allowing the public the access they need.
Here is how it works.
Besides Traffic and Batch Geocoding you can also proxy the following services:
Service | Proxy Value |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.