I have an external application that needs to take a data dump of a feature service in ArcGIS Enterprise using REST calls.
The feature service is secured using Portal groups.
I have created an application item in Portal, which gave me a clientid and secret. With this I can generate a token.
If I pass this token to the feature service, I either get login HTML (f=HTMLhtml) or "invalid token" (f=json).
I am guessing the application does not have access rights to the feature service. How do I configure this?
Solved! Go to Solution.
Hi Calin Arens,
If you download the application and host it on your server (rather than host it in Portal), you could configure the Esri Resource Proxy to allow external access to your secure services: Working with Proxy Services | ArcGIS for Developers. You can pass the clientid and secret in the proxy.
This blog walks through an example of how to set up the proxy with an IIS web server: https://community.esri.com/groups/technical-support/blog/2015/04/07/setting-up-a-proxy
Best,
Morgan
Hi Calin Arens,
If you download the application and host it on your server (rather than host it in Portal), you could configure the Esri Resource Proxy to allow external access to your secure services: Working with Proxy Services | ArcGIS for Developers. You can pass the clientid and secret in the proxy.
This blog walks through an example of how to set up the proxy with an IIS web server: https://community.esri.com/groups/technical-support/blog/2015/04/07/setting-up-a-proxy
Best,
Morgan