I'm trying to figure out how to use integrated windows authentication within a Geo-processing service. My python script is using the ArcGIS Api for python. I created this short script on my local machine where my 'Wndows Credentials' exist. All I'm doing is instantiating the GIS object by passing it my <domain name>/portal/sharing/rest. After, I simply print out my username exactly how the documentation suggest
Integrated Windows Authentication using NTLM or Kerberos
Logged in as: username@DOMAIN
I then convert this to a Geo-processing service and publish this to my Arc Server. The problem is, the server doesn't have my user credentials that it gets from IWA, so it isn't able to run successfully. My goal is to eventually hit this geo-processing service from our web application built with the Esri JS Api, which allows me to get the users credentials with the IdentityManager.getCredentials() JS function call.
Do you all have any suggestions on how to create the python GIS object within a Geo-processing service with IWA authentication? I think my web app would ultimately pass these credentials to the Geo-processing service?