Select to view content in your preferred language

How to share secured feature service with application

1030
1
Jump to solution
10-30-2018 03:05 AM
CalinArens1
Emerging Contributor

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?

0 Kudos
1 Solution

Accepted Solutions
MorganWaterman
Occasional Contributor

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

View solution in original post

1 Reply
MorganWaterman
Occasional Contributor

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