How do you append an access token to an SOE request for Federated ArcGIS Server services?
We have a Server Object Extension deployed on a few of our services and we were able to get results back from it prior to federating the ArcGIS Server hosting the services with Portal. Now, requests to the SOE fail with a 403 error stating "You do not have permission to view this directory or page using the credentials that you supplied."
Inspecting the request further, it shows that it's going through the proxy.ashx file (the host part of the url for the service differs from that of the Essentials Viewer). There is no entry in the proxy.config file for the server that hosts these map services. If I chop off the proxy part of the request, and get the actual url the proxy is attempting to talk to and put that in it's own browser tab, it comes back with this error:
{"error":{"code":499,"message":"Token Required","details":[]}}
Presumably this is our Portal saying the request won't be served without an access token... but I'm not sure how to append the token to the request automatically. Is this a setting in the Rest Manager... do I need to modify the proxy config and specify something there? Ideally this request would be issued with the credential/token of the Portal authenticated user using the application... so hard-coding a user/pass into the proxy config is not a solution here. I'm not sure if this is an Essentials issue or an ESRI issue... but it seems like the viewer needs to issue the request with a token... but I'm not sure how to configure that. Any thoughts appreciated!
0
-
Hi Lance
As we found in your case 00118639, there seemed to be something environment specific at play here. We were able to build similar requests to a portal-federated AGS through the GVH proxy with the token intact. We concluded that it seemed to be a potential bug at play.0
Please sign in to leave a comment.
Comments
1 comment