Problems with Offline Web Requests
We are making a query to the ArcGIS REST endpoint using the ESRI QueryTask javascript object. The request is being rewritten correctly to the local URL except the token is not attached to the request. This causes an error.
I want to know how to access this token programmatically. It's clear to me that the GVHTML5 Viewer is sending the request with the token so it MUST have it stored somehwere.
Below is an example of a working request mentioned (with sensitive parts missing). Basically I've hard coded the token in that I see in the GVHtml5 viewer. This will not work for users :(
https://ourserver.company/Geocortex/Essentials/environment/Rest/sites/MattsDevelopment/map/mapservices/3/rest/services/x/FeatureServer/1/query?token=myTokenString&f=json&where=1%3D1&returnGeometry=false&spatialRel=esriSpatialRelIntersects&outFields=IDENTIFIER%2CREGION_ID%2CREGION_NAME%2CSTRUCTURE_ID%2CNAME
0
-
Thought I found something useful in geocortex.framework.application.Application. It's a variable called "localServerToken" with a description of "An access token which needs to be provided in order to access any of the local server endpoints.". That was promising but this is NOT the token you're looking for *waves jedi hand*. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar