I am facing the challenge that I want to provide a GP tool on an ArcGIS Server 11.3, which should always use the credentials of the calling user when running.
The call is made from an Experience Builder client so that I can customize the request accordingly.
One possible solution would be to set up a separate parameter for the user token or the username. However, I don't like this solution for several reasons. I actually only want to receive the information required for processing in the parameters and not credentials. In addition, the signature of the tool would change. And I would have to do this for all my tools.
I would prefer a transfer via the HTTP header. But I can't find a way to read the HTTP header in the context of an ArcGIS Server GP tool.
An SOI doesn't seem to help either, as this can only be used for MapServices.
Is it possible to access the HTTP header information within a GP Tool in ArcGIS?
Are there any other ideas to realize this?