Token issue to run secured GP services in Geocortex Essentials Workflow
To run a secured GP service using the Geoprocessor widget needs to provide an ArcGIS token. Instead of using GenerateToken widget which needs either enter the username and password every time, or hardcoded the credential in the workflow, I tried to generate the ArcGIS token by using GetMapSerivceInfo on a map service layer that was added to Geocortex site. The map service and the GP service are placed under the same ArcGIS REST folder, and inherited the same security from the folder. The map service layer also has permission applied in Geocortex.
With the output token from GetMapServiceInfo, I was able to run Query task on the map service layer. But I guess because the token was a Geocortex token instead of the ArcGIS token, as the layer has Geocortex-level permission applied , Therefore, the GP service can’t run with the Geocortex token, and returned “Invalid Token” error.
So, the question is, is it possible to get ArcGIS token for the run the GP service, without using GenerateToken widget? Thanks.
0
-
Hi,
Unfortunatley no, there's no way for the workflow to pull an existing AGS token so you will need to use the GenerateToken activity.
Thanks,
Mike Ketler0 -
Thank Mike for the answer. It would be very useful if the authenticaiton of a secured geoprocessing service could be passed by Essentials as a proxy like how it was done for map services. so that there's no need to explose the username and password at the client end. 0 -
Hi Jack,
I would recommend submitting this in the (https://support.geocortex.com/GSCIdeas?c=09a6000000008RsAAI&filter=1&categ=all&sub-nav=ideas&main-nav=essentials&page=1) Ideas section, to have it considered as a potential improvement for future versions.
Thanks,
Aaron Oxley0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer