How to add security info in viewer's template
I have a viewer including two templates. With in one of the templates, I have some datasources refering private content from ArcGIS server. Here is the configuration:
{
"id": "myId",
"displayName": "myId",
"handlerId": "query",
"keyFieldName": "ROUTE_ID",
"dataSourceUri": "https://ourservice/private/rest/services/thecontent",
"dataQueryWhere": "sort of query",
"dataQueryOutFields": "sort of fields",
"startRangeFieldName": "FROM",
"endRangeFieldName": "TO",
"featuresEqualityFieldName": "somefield",
"eventType": "linear"
}, When I initialize the viewer and try to show data, it returns 401 unauthorized error when sending request to the arcgis service. How should I add authorization info to the data source?
0
-
Hi Bo,
It looks like this viewer configuration is used in the Geocortex Inline viewer only, it's not normally found in the regular GVH configuration.
If you haven't already tried this, please see if adding your secured service to your Geocortex Essentials Site lets it work with Inline.
Otherwise, if this problem persists, get in contact with your account manager for further assistance with Inline!
Regards,
-Malcolm0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar